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

Disable checkbox in NestedView table

1 Answer 16 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 23 Aug 2011, 05:26 PM
Is there any way to disable the SelectAll functionality of a SelectColumn checkbox in the header of a NESTED Table View.

GridHeaderItem item = RadGrid1.MasterTableView.GetItems(GridItemType.Header)[0] as GridHeaderItem;

does it for the main grid but how do I access the Header in the Details Table?

1 Answer, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 23 Aug 2011, 07:57 PM
Hello,

<DetailTables>
                   <telerik:GridTableView Name="Child">
                       <Columns>
                           <telerik:GridClientSelectColumn UniqueName="SelectColumn">
                           </telerik:GridClientSelectColumn>
                           <telerik:GridBoundColumn DataField="ID" HeaderText="ID" UniqueName="ID" SortExpression="ID">
                           </telerik:GridBoundColumn>
                           <telerik:GridBoundColumn DataField="Name" HeaderText="Name" UniqueName="Name" SortExpression="Name">
                           </telerik:GridBoundColumn>
                       </Columns>
                   </telerik:GridTableView>
               </DetailTables>
if (e.Item is GridHeaderItem && e.Item.OwnerTableView.Name == "Child")
           {
               GridHeaderItem item = e.Item as GridHeaderItem;
               (item["SelectColumn"].Controls[0] as CheckBox).Enabled = false;
           }

let me know if any concern.

Thanks,
Jayesh Goyani
Tags
Grid
Asked by
Simon
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Share this question
or