Disable Cell edit with columns of type GridViewMaskedInputColumn and GridViewComboBoxColumn

2 posts, 0 answers
  1. Michele
    Michele avatar
    426 posts
    Member since:
    Jun 2009

    Posted 04 Jun 2014 Link to this post

    I need to disable the cell edit based on some properties of my viewmodel.... for standard GridViewDataColumn 

    I've done
    <telerik:GridViewDataColumn DataMemberBinding="{Binding MULTIPLIER_DA,Mode=TwoWay}" Header="Size da" UniqueName="MULTIPLIER_DA" IsEnabled="{Binding CanUserAdd, RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type Grid}}}"  >
                              <TextBox Text="{Binding MULTIPLIER_DA,Mode=TwoWay}" IsEnabled="{Binding DataContext.CanUserAdd, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadGridView}}}"></TextBox>

    How do I do it for Combo and Numeric?
  2. Dimitrina
    Dimitrina avatar
    3769 posts

    Posted 05 Jun 2014 Link to this post


    You can similarly make any column IsEnabled or not. You can also set the IsReadOnly property to disable editing the cells of the column. Would you please clarify how are the Combo and Numeric columns different?

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
Back to Top