SmartClient Version: v9.0p_2013-11-03/PowerEdition
Browsers: IE 7 -10, Chrome 32, probably others
We are using the "viewStateChanged" property of ListGrid to capture any changes made to the grid (column widths, sort orders etc) and call a function to persist the new state to the database.
In our List grid we have a checkBox as the first colum and generate is using the following property, selectionAppearance : "checkbox".
We are seeing that if a user clicks on the header row checkBox or the checkBox in indiviudal rows the "viewStateChanged" is fired and making a server call which we do not want as we are not making any changes to the columns. Is there any way to identify this event (checkbox clicked) and prevent the server call ?
Here is a sample of the code within the listGrid we have.
selectionAppearance : "checkbox",
viewStateChanged : function() {persistGridState(gridName);},
Browsers: IE 7 -10, Chrome 32, probably others
We are using the "viewStateChanged" property of ListGrid to capture any changes made to the grid (column widths, sort orders etc) and call a function to persist the new state to the database.
In our List grid we have a checkBox as the first colum and generate is using the following property, selectionAppearance : "checkbox".
We are seeing that if a user clicks on the header row checkBox or the checkBox in indiviudal rows the "viewStateChanged" is fired and making a server call which we do not want as we are not making any changes to the columns. Is there any way to identify this event (checkbox clicked) and prevent the server call ?
Here is a sample of the code within the listGrid we have.
selectionAppearance : "checkbox",
viewStateChanged : function() {persistGridState(gridName);},
Comment