I have a grid where the user will click a column and I want to handle that column-click server-side. I tried handling OnSelectedCellChanged (with EnablePostBackOnRowClick="true") but that only works when clicking cells, not columns headers. How can I achieve this?
The only thing is that now when clicking a cell the whole column is no longer selected ie. CellSelectionMode="Column" seems to have no effect.
What I want is that a whole column is selected when the user clicks the column header or any cell in that column and then do a postback - any ideas?
answered on 20 Jul 2015, 07:26 AM
Notwithstanding, for handling the header column click on server-side you can use the client-side OnColumnClick event and fire custom command through the grid's MasterTableView with the column's UniqueName:
var clickedColumnName = e.CommandArgument.ToString();
Label1.Text = clickedColumnName;
As for the Column CellSelectionMode, this property will select the cells for the entire column only when you click on the column's header. Detailed information on this matter is available in the following help article:
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?
Telerik Feedback Portal
and vote to affect the priority of the items