I have a case where I have two windows that each have there own copy of a local json string. They both read in their data from the same source. When I change data on one, I want the other window to update, so I tried this.
//_iUI.windows[w].window.gridIDMap.dataSource._data This is one window//INSTANCE.gridIDMap.dataSource._data; this is the other. _iUI.windows[w].window.gridIDMap( "dataSourceObject", INSTANCE.gridIDMap.dataSource._data ); _iUI.windows[w].window.gridIDMap( "dataBind" );
This didnt work but if I do this
_iUI.windows[w].window.gridIDMap.dataSource._data = INSTANCE.gridIDMap.dataSource._data;_iUI.windows[w].window.gridIDMap( "dataBind" );
The data still does not update on the screen but it was actually changed. I say that because if I double click on a cell I see the new data for a brief second but then is quickly change back to the screen value.
Is this not the best way to do this?
Sorry Martin but it appears that the issue has resolved itself. I'm not sure what the cause was but its working as suggested above.
Hello Sean,
I tried to replicate this issue, but with no success. I'm attaching my sample for your reference. Run the sample, press "Open window2" button, then press "Data bind grid in window2" button. Observe the data of the grid in window2.
Please, see if I'm on the right path to replicate your issue.
Best regards,Martin PavlovInfragistics, Inc.