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.
Unfortunately, activation email could not send to your email. Please try again.

Multiple Selected Rows

Thread ID:

Created:

Updated:

Platform:

Replies:

99664 Jun 2,2011 03:01 PM Jun 3,2011 03:33 AM ASP.NET MVC (Classic) 1
loading
Tags: Grid
Jason Beal
Asked On June 2, 2011 03:01 PM

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?



Eswari S [Syncfusion]
Replied On June 3, 2011 03:33 AM

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




CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;