gxt grid selection event getting fired on changing column width
I am using paginated livegrid. The problem is that when i select a row and then try to change the column width of any column in that table, the selwcted row is getting deselected. But my requirement is that even on chaging column width, row shouldnt get deselected
Also, when i select a row and scrolldown wuch that the selected row is not visible i.e.., it went to the top, even then the selection is getting reset.
In the example URL provided by you, please check http://www.sencha.com/examples/#ExamplePlace:livegrid example. There, try to click on 3rd or 4th row and then scrolldown untill the selected row moves out of visibility. Now again scroll up and you could be able to see that the selection of that row is lost.
When a column is dragged manually to change its width, reset of selected row is also replicated in the LIVE GRID example.
I dont want the row selection to be reset untill I select another row in that grid.
This is by design - the LiveGrid keeps in memory only the items it is drawing currently, plus a buffer on either side. Otherwise, any item a user selects must be kept in memory forever, even if they never scroll back to that item. This may make perfect sense in your application, but would essentially be a memory leak in many others. This same result will occur with normal paging as well.
To track this in your app, listen to any selection events so that you know when the user selects something, and listen to LiveGridViewUpdateEvents to see when the view has changes to re-select items which are now back in view again.
In the future, if you need help right away, please file a support ticket so we can arrange to view your code or screenshare to try to help you fix your code, provide a fix to GXT, or offer a workaround.