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

RadGridView row readonly binding

1 Answer 332 Views
GridView
This is a migrated thread and some comments may be shown as answers.
RR
Top achievements
Rank 1
RR asked on 31 Mar 2016, 04:17 AM

how to make a row read only in radGridView through binding.  Here is the Grid View I use. I have bind IsReadOnlyProperty. Which is in MemberList. But this does not take effect. Columns are dynamically binded. 

<telerik:RadGridView
          ItemsSource="{MemberList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
                                     AutoGenerateColumns="False"  CanUserSortColumns="False"
IsFilteringAllowed="False"  
CanUserReorderColumns="False"                                              SelectionMode="Single" SelectionUnit="FullRow" CanUserSelect="True" ShowGroupPanel="False"
IsSynchronizedWithCurrentItem="False" RowIndicatorVisibility="Collapsed"
IsReadOnly="{Binding IsRemoved}">

    <ei:Interaction.Behaviors>
                                    <commonViewModel:GridColumnsBindingBehavior Columns="{Binding Columns,Mode=TwoWay}"/>

                                </ei:Interaction.Behaviors>

1 Answer, 1 is accepted

Sort by
0
Accepted
Stefan Nenchev
Telerik team
answered on 31 Mar 2016, 08:45 AM
Hi Roshan,

You need to set the IsReadOnlyBinding property of the column and not of RadGridView. Please check the following article - ReadOnly Rows and Cells. The "IsReadOnly" property you have used is applied for the whole RadGridView. There is a demo in our SDK Samples browser - Read Only Binding - which you can check as well.

Regards,
Stefan Nenchev
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
GridView
Asked by
RR
Top achievements
Rank 1
Answers by
Stefan Nenchev
Telerik team
Share this question
or