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

prevent rowselect in hierarchical grid

1 Answer 61 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Albert Shenker asked on 21 Sep 2011, 06:15 PM
I have a grid with a parent/detail table. Clicking on the expand/collaps icon displays/hides the detail column. Everything works fine except, clicking on the parent table row "Selects" it and this is undesirable behavior in my scenario since selecting the row doesn't do anything and isn't used. I tried setting the "Selecting" clientSettings Parameter AllowRowSelect='False", and this prevented the row being selected, however, this also prevents the expand/collapse column from working to display the detail table. Apparently you need to be able to select the parent row to display the child table. Is there a way to prevent the selection of the parent row and still have the expand/collapse column work? If not, is there a way of preventing the selected parent row from being shown as "highlighted". The visual appearance is all I really care about.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 22 Sep 2011, 05:52 AM
Hello Albert,

I am not quite sure about the requirement and also not able to reproduce your issue at my end. Try setting the following CSS inorder to avoid the highlighted color when a row is clickced.
aspx:
<style type="text/css">
    .RadGrid_Default .rgSelectedRow
    {
     background:Transparent!important;
     color:Black !important;
    }
    .RadGrid_Default .rgSelectedRow td
    {
     border-bottom-color:white !important;
    }
</style>

Thanks,
Princy.
Tags
Grid
Asked by
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Answers by
Princy
Top achievements
Rank 2
Share this question
or