Load datasource remoteData when window is open

Hi, I got 2 widgets, 1 tree with several nodes, and 1 listGrid, I need when select on the tree the item : A1, the dataSource reload the information with A1 param, and when somebody select A2, get A2 data on the dataSource

My problem is when the application starts the listgrid automatic get the datasource data when the default item on selected on the application, then when somebody select a different item on the tree, the datasource keeps the data related to the default it.

Look like the datasource get the data when the application starts and do not reload the data when I open the window with the listgrid inside.

Thanks

Load datasource remoteData when window is open

Hi avalverde,

There is refresh method in the remote data listgrid . You could execute this method when the user open the window.For example :

<b:window >
   <e:handler event="open" type="application/javascript">
      bb.document.getElementById('listGrid').refresh();
   </e:handler>
   <b:listGrid id="listGrid">...other code...</b:listGrid>

~Yudi