Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3790
updating data in grid on the screen
posted

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?