PDA

View Full Version : Grid reconfigure() is not working in GWT



sagarsway
8 Jan 2010, 1:44 AM
Hi All,

I am using EXT JS gxt-2.1.0 with GWT. I have gone through sample demo for grid binding "Grid Store Binding". But as my Grid data is not static, I have write method as follows,

public void updateCustomerResult(
List<CustomerDetailsModel> customerSearchResult) {
ListStore<CustomerDetailsModel> store = new ListStore<CustomerDetailsModel>();
store.setMonitorChanges(true);
store.add(customerSearchResult);
grid.reconfigure(store, cm);

}

Also after modification , changes reflects in grid but not making in red as shown in demo.
And one more thing, the "Reset" and "Commit" button is coming on right hand side with small strip, after clicking on which showing two buttons vertically.

Please help me out in this problem.

sagarsway
8 Jan 2010, 2:37 AM
I also found that, if we populate Grid while creation then it works fine i.e. modification reflects with red mark in grid as well as Reset & Commit button works.

But when we reconfigure grid with same data, then all things goes bad i.e. modification not reflected with red mark in grid as well as Reset & Commit button not working.

So after using reconfigure, its basic function is not working? Is there is way to solve it out ?

fay
8 Jan 2010, 5:31 AM
Not being smart, but it might be better to try the Ext GWT Community Forums (2.x) (http://www.extjs.com/forum/forumdisplay.php?f=43)