This question is locked. New answers and comments are not allowed.
Hi telerik,
I have a grid that can be in edit mode or not depending on user rights. Each column contains a section CellTemplate and CellEditTemplate. I tried unsuccessfully to affect the properties of IsReadOnly and IsReadOnlyBinding of the definition section of the grid. The grid is unfortunately still in edit mode. I did some research on your forum and I found that I'm not the only one having this problem (see http://www.telerik.com/community/forums/silverlight/gridview/please-please-don-t-change-isreadonlybinding-as-it-is-in-latest-internal-build.aspx ). Question, why the radgrid have two properties for the same purpose (IsReadOnly and IsReadOnlyBinding) ?
Here a sample:
<telerik:RadGridView ItemsSource="{Binding ItemsSource}" AutoGenerateColumns="False" CanUserInsertRows="{Binding CanUserInsertRow}" ShowInsertRow="{Binding CanUserInsertRow}" IsReadOnly="{Binding IsGridInReadOnlyMode}" IsReadOnlyBinding="{Binding IsGridInReadOnlyMode}"> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn DataMemberBinding="{Binding CompanyName}" Header="Company Name" > <telerik:GridViewDataColumn.CellTemplate> <DataTemplate> <TextBlock Text="{Binding CompanyName}" /> </DataTemplate> </telerik:GridViewDataColumn.CellTemplate> <telerik:GridViewDataColumn.CellEditTemplate> <DataTemplate> <TextBox Text="{Binding CompanyName}" /> </DataTemplate> </telerik:GridViewDataColumn.CellEditTemplate> </telerik:GridViewDataColumn>
Thanks for reply