get previously selected rows from onSelectedRowsChanged event
Hi,
Anyone know an easy way to get the previoulsy selected grid rows when the onSelectedRowsChanged(array) event is fired? The event only provides an array of the newly selected rows and I haven't been able to find an equivalent to onBeforeSelectedRowsChange() event.
Reason:
I have a number of grids on a page, I want some of the grids to use the
.aw-cells-selected, .aw-rows-selected css classes when a row is clicked but not all grids. I don't know the names/ids of the grids at design time so I cannot selectively name the css classes as you would normally do.
i.e. #myGrid .aw-cells-selected, .aw-rows-selected {...}
Currrently I am using getRowTemplate(index).setClass("myrow", "selected") in the onRowClicked(index) event, but I need to reset the clicked row when the selection changes.
Anyone know a good way to do this?...other than keeping a list of previously selected rows :)
Thanks in advance for any help.
BT
Anyone know an easy way to get the previoulsy selected grid rows when the onSelectedRowsChanged(array) event is fired? The event only provides an array of the newly selected rows and I haven't been able to find an equivalent to onBeforeSelectedRowsChange() event.
Reason:
I have a number of grids on a page, I want some of the grids to use the
.aw-cells-selected, .aw-rows-selected css classes when a row is clicked but not all grids. I don't know the names/ids of the grids at design time so I cannot selectively name the css classes as you would normally do.
i.e. #myGrid .aw-cells-selected, .aw-rows-selected {...}
Currrently I am using getRowTemplate(index).setClass("myrow", "selected") in the onRowClicked(index) event, but I need to reset the clicked row when the selection changes.
Anyone know a good way to do this?...other than keeping a list of previously selected rows :)
Thanks in advance for any help.
BT
March 10,