This is a migrated thread and some comments may be shown as answers.

GridClientSelectColumn and highlighting issue

2 Answers 139 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Hendrik
Top achievements
Rank 1
Hendrik asked on 07 Feb 2011, 11:43 AM
hi together,

i have a grid on my page which uses multi row selection (with help of a GridClientSelectColumn) and highlighting.
the options for AllowMultiRowSelection and AllowRowSelect are set to "true", UseClientSelectColumnOnly is set to "false".

everything works as supposed except for one thing: everytime i click on one of the checkboxes, the complete row becomes highlighted. i'd like to have the highlight feature exclusively by clicking in the row, not on the checkboxes.

is there a built-in way to highlight only the last selected row and do multi row selection with the checkboxes without highlighting?? i think it's the same way the radtreeview works...
if that's not the case, which event do i hang on to cancel the checkbox highlighting on my own ?

thanks for your help :) regards
hendrik

2 Answers, 1 is accepted

Sort by
0
Accepted
Veli
Telerik team
answered on 10 Feb 2011, 09:25 AM
Hello Hendrik,

RadGrid does not support this scenario. Particularly, a selected row is always highlighted regardless if it was selected by clicking on the row or by checking the checkbox in the GridClientSelectColumn. If you need to implement this scenario, you will have to use a custom column. You can add a GridTemplateColumn with a CheckBox control in the ItemTemplate. Thus, checking the checkbox in column cells will not select the current item and will not highlight the row. In this case, however, you need to keep track of the checked state of the checkbox in each cell, as now the selected item state is not in sync with the checkbox state.

Veli
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Hendrik
Top achievements
Rank 1
answered on 10 Feb 2011, 12:45 PM
thanks for your reply :)
Tags
Grid
Asked by
Hendrik
Top achievements
Rank 1
Answers by
Veli
Telerik team
Hendrik
Top achievements
Rank 1
Share this question
or