The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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?
ESEswari 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.