Title: datagrid.getSelections is not returning selected rows Post by: alex.capurro on May 28, 2012, 07:12:52 AM Hi,
I have a table that i am creating with code, ie: Code: $('#users').datagrid({ I then have a button that when you click on it calles this function: Code: function getSelections(){ However no matter how many rows i select, the rows variable only shows me 1 selection (the last one i choose). Here is the html of my table: Code: <table id="users" maximizable="false" toolbar="#userSearchtb"></table> Title: Re: datagrid.getSelections is not returning selected rows Post by: alex.capurro on May 30, 2012, 03:43:44 AM Actually i solved the problem. It was because the idField of the table i was using was incorrect.
it appears that the getSelections uses the idField property so you need to make sure that the idField is actually the same as the one passed in the json data. |