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

Disable grid, but allow scrolling

3 Answers 207 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Terry
Top achievements
Rank 1
Terry asked on 18 Jul 2019, 09:55 PM

Hi,

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

Thanks

3 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 19 Jul 2019, 08:04 AM
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.
0
Terry
Top achievements
Rank 1
answered on 19 Jul 2019, 10:28 PM

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?

0
Dimitar
Telerik team
answered on 22 Jul 2019, 06:51 AM
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.
Tags
GridView
Asked by
Terry
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Terry
Top achievements
Rank 1
Share this question
or