We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Multiple Selected Rows

Hello,

When selecting multiple rows in the grid, I am trying to figure out the value of a specific column for each of those rows.

I have been able to determine what rows are selected using some jQuery:

var selectedItems = $find('oGrid')._selectionManager.selectedRowsCollection

This gives me back an array of 0-based index values of the selected rows. Is there anyway to use these index values to find out what a column value for that row would be?



1 Reply

ES Eswari S Syncfusion Team June 3, 2011 07:33 AM UTC

Hi Jason,

Thank you for your interest with Syncfusion products.

Query#: Is there any way to use these index values to find out what a column value for that row would be?

“_selectionManager.selectedRowsCollection “ will return the index values of the selected rows only. We can find the column value of the row by using setJSONRecord() and Jsonrecord methods.

Please refer to the following code snippets:

[JavaScript]



Also, You can select the records by using the following methods.

var gridObj = $find("OrderGrid");
gridObj.selectAll(); // selectAll method select all the records in grid.
gridObj.selectRow(index); // selectRow method selects the particular record which is specified in index

Please let us know if you need any further assistance.

Regards,
Eswari.S




Loader.
Live Chat Icon For mobile
Up arrow icon