asp.net - Ext.net:Load again TreeviewStore inside usercontrol again -


i have main page , load treepanel this.(it loaded without problems)

  treestore1.datasource = filltree.treedoldur();                 treestore1.databind(); 

here user controler, after adding data ,i binding treewiewstore again

   ext.net.treestore tw = (ext.net.treestore)page.findcontrol("treestore1");             tw.datasource = filltree.treedoldur();             tw.databind(); 

but seesm treepanel doent fill again new values.how can solve problem. (m treepanle inside mainpage)

here markup

            <ext:treepanel id="treepanel1" runat="server" title="treepanel" width="300" height="200"                                 margin="10" rootvisible="false" lines="false" usearrows="false" region="west">                                 <topbar>                                     <ext:toolbar id="toolbar2" runat="server">                                         <items>                                             <ext:toolbartextitem id="toolbartextitem1" runat="server" text="filter:" />                                             <ext:toolbarspacer />                                             <ext:triggerfield id="triggerfield1" runat="server" autofocus="true" enablekeyevents="true">                                                 <triggers>                                                     <ext:fieldtrigger icon="clear" />                                                 </triggers>                                                 <listeners>                                                     <keyup fn="filtertree" buffer="250" />                                                     <triggerclick handler="clearfilter();" />                                                 </listeners>                                             </ext:triggerfield>                                         </items>                                     </ext:toolbar>                                 </topbar>                                 <store>                                     <ext:treestore id="treestore1" runat="server">                                         <root>                                             <ext:node expanded="true">                                             </ext:node>                                         </root>                                     </ext:treestore>                                 </store>                                   <directevents>                                 <itemclick onevent="hello">                                 <extraparams>                                 <ext:parameter name="id" value="record.data.id" mode="raw"></ext:parameter>                                 </extraparams>                                 </itemclick>                                 </directevents>                              <%--   <listeners>                                     <itemclick handler="app.direct.hello(record.data.id);" />                                 </listeners>--%>                             </ext:treepanel> 


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -