Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIWjQDBGrid onSelectRow selection status
I am exploring the recently added TIWjQDBGrid component, and find it quite useful.

But I can not figure out how to obtain the selected row selection status when the row is re-clicked to unselect without rewriting/adding some custom javascript.

The thing needed was to add 'status' to the javascript code and call an additional function passing the 'status' value through a separate callback.

$("#grid_MYGRID").jqGrid({...onSelectRow:function(rowid,status,e){exMyGridSelectRow(rowid, status); return MYGRID_onSelectRow(rowid,e);}

Is it possible to let IW 15 also render js to return the 'status' parameter in the callback EventParams in future versions or is there any other way to aquire the row selection status in the current version?
Hi there,

yes, that's a good enhancement and it has been already implemented in our code base.

There will be a new grid property RowSelectedStatus (Boolean) which will contain the status of the row (selected or not). Of course the original "status" parameter will be also present in EventParams parameter of the async event.

A new update will be released soon
Please update to 15.2.24 and use the new property IWjQDBGrid.RowSelectedStatus (boolean) which should be updated at each OnAsyncSelectRow event.
The property was chosen instead of a new parameter so the event signature keeps stable and doesn't require code change for existing users.
Very nice Smile Thank you for quick solution.

Forum Jump:

Users browsing this thread: 1 Guest(s)