Hello NetDeveloper1107,
To be able to use RadGrid's client-side OnCommand event, you have to use
GridButtonColumn instead of a template column with a linkbutton. Only
GridButtonColumns are automatically adjusted to fire the client-side OnCommand event of the grid:
Second, each of your columns needs to have a UniqueName. If you do not explicitly specify a UniqueName for your columns, the UniqueName will be assigned the value of the
DataField property. However, if you have 2 or more column with the same
DataField, the UniqueName will get messed up and you will not easily know the column's unique name. Therefore, you are encouraged to explicitly set UniqueName to all of your columns. In your setup, however, I do not see any columns with matching DataFields, so I believe you can assume the UniqueName of each column is the DataField.
Having said that, the client-side GridDataItem object has a
get_cell() method that returns the HTML TD element under the specified column. The column is specified by it's UniqueName, therefore it is important that you know the unique names of each of your columns:
Greetings,
Veli
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.