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

[Solved] Column.IsReadOnly not working

1 Answer 135 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Brian
Top achievements
Rank 1
Brian asked on 03 Nov 2010, 09:46 PM
If you have a RadGrid with a Microsoft checkbox instead of using the RadGrid checkbox column, the column.IsReadOnly is not preventing users from checking the checkbox. It would seem that regardless of the object contain within the column, it should turn prevent editing. For the record, we are not using the Rad checkbox column as we need the user to have one click on that checkbox.

                          <telerik:GridViewColumn Header="L1"  >
                       <telerik:GridViewColumn.CellTemplate>
                           <DataTemplate>
                               <CheckBox Name="ApprovalL1"  Click="ApprovalL1_Click" IsChecked="{Binding ApprovalL1, Mode=TwoWay}" />
                           </DataTemplate>
                       </telerik:GridViewColumn.CellTemplate>
                   </telerik:GridViewColumn>

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 04 Nov 2010, 10:25 AM
Hi Brian,

If you want to prevent the user to check the CheckBox in the CellTemplate, you may set its IsEnabled property to "False". Furthermore, you may take a look at this forum thread for a further reference.
 

Kind regards,
Maya
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
Tags
GridView
Asked by
Brian
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or