Example of Lock Row in ASP.NET Core Tree Grid Control

Tree Grid
Editing
Lock Row

This samples demonstrates the way of preventing editing for certain row and disable the locked rows to differentiate edit and non-editable rows in TreeGrid.

1
Planning
3/2/20175
2
Plan timeline
3/2/20175
3
Plan budget
3/2/20175
4
Allocate resources
3/2/20175
5
Planning complete
7/2/20171
6
Design
10/2/20173
7
Software Specification
10/2/20173
8
Develop prototype
10/2/20173
9
Get approval from customer
2/13/20172
10
Design complete
2/14/20171
1 of 2 pages (3 items)
Properties
Disable Rows
2, 6

The TreeGrid supports CRUD operations. This CRUD operations can be configured in TreeGrid using editSettings. Also, it has different modes to manipulate the datasource.

The available modes are,

  • Row
  • Cell
  • Dialog

In this sample, we have provided an option in property panel to prevent editing for certain rows. Using beginEdit event of treegrid, we prevent the editing for selected Task ID row in the dropdown and disable the corresponding row using rowDataBound event of TreeGrid.

Transform your ASP.NET Core web apps today with Syncfusion® ASP.NET Core components
100+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE
opens in a new tab