On which eventof the RAD Grid, we can get the value of the cell in the RAD grid?
Thank yoy
Bharat Singh
1 Answer, 1 is accepted
0
Marin
Telerik team
answered on 18 Oct 2010, 11:48 AM
Hello Bharat,
There are a lot of ways you can do this depending on the specific scenario (whether you want to do it client-side or on the server, whether the grid is display or edit mode etc.) Basically the main principle is the same: you pick an event called for each item in the grid (ItemCreated/ItemDataBound), access the desired column by its column unique name and get the text value of the returned TableCell object. Here is sample code showing this approach:
TableCell cell = dataItem["ColumnUniqueName"]; //where dataItem is object of type GridDataItem
stringcellValue = cell.Text; //the value of the cell
}
}
For more information on concrete cases please check the following help topic.
All the best,
Marin
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items