Disable grid, but allow scrolling

4 posts, 0 answers
  1. Terry
    Terry avatar
    14 posts
    Member since:
    Feb 2018

    Posted 18 Jul 2019 Link to this post

    Hi,

    Is there a way to enable scrolling and set the grid to disabled?

    Thanks

  2. Dimitar
    Admin
    Dimitar avatar
    2841 posts

    Posted 19 Jul 2019 Link to this post

    Hi Terry,

    You can disable the rows only: 
    public RadForm1()
    {
        InitializeComponent();
      
        radGridView1.ViewRowFormatting += RadGridView1_ViewRowFormatting;
     
    }
     
    private void RadGridView1_ViewRowFormatting(object sender, RowFormattingEventArgs e)
    {
        e.RowElement.Enabled = false;
    }

    I hope this helps.  

    Regards,
    Dimitar
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. Terry
    Terry avatar
    14 posts
    Member since:
    Feb 2018

    Posted 19 Jul 2019 in reply to Dimitar Link to this post

    Thanks, I am trying to make it visual for the user so its clear if the grid is editable.

    I have changed the coloring of the rows using the RowFormatting trigger. Is there a convenient way to call this trigger on all rows that are visible?

  4. Dimitar
    Admin
    Dimitar avatar
    2841 posts

    Posted 22 Jul 2019 Link to this post

    Hello Terry,

    You can trigger the update with the following method: 
    this.radGridView1.TableElement.Update(GridUINotifyAction.StateChanged);

    Should you have any other questions, do not hesitate to ask.

    Regards,
    Dimitar
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top