Example of Dialog Editing in ASP.NET Core Tree Grid Control

Tree Grid
Editing
Dialog Editing

This sample demonstrates CRUD operations in TreeGrid. You can perform CRUD operations as follows,

  • Add - To add new record, click Add toolbar button.
  • Edit - To edit record, double click a row or click toolbar Edit button after selected a row.
  • Delete - To delete record, click toolbar Delete button after selected a row.
  • Update, Cancel - You can save or discard changes by click toolbar Update and Cancel button respectively.
1
Planning
3/2/20177/2/20175100
2
Plan timeline
3/2/20177/2/20175100
3
Plan budget
3/2/20177/2/20175100
4
Allocate resources
3/2/20177/2/20175100
5
Planning complete
7/2/20177/2/201711
6
Design
10/2/20172/14/2017386
7
Software Specification
10/2/20172/12/2017360
8
Develop prototype
10/2/20172/12/20173100
9
Get approval from customer
2/13/20172/14/20172100
10
Design complete
2/14/20172/14/201711
11
Implementation Phase
2/17/20172/17/20171166
12
Phase 1
2/17/20172/27/20171150
13
Implementation Module 1
2/17/20172/27/20171110
14
Development Task 1
2/17/20172/19/2017350
15
Development Task 2
2/17/20172/19/2017350
16
Testing
2/20/20172/21/201721
17
Bug fix
2/24/20172/25/201721
18
Customer review meeting
2/26/20172/27/201721
19
Phase 1 complete
2/27/20172/27/2017250
20
Phase 2
2/17/20172/28/20171260
21
Implementation Module 2
2/17/20172/28/20171290
22
Development Task 1
2/17/20172/20/2017450
23
Development Task 2
2/17/20172/20/2017450
24
Testing
2/21/20172/24/201721
25
Bug fix
2/25/20172/26/201721
26
Customer review meeting
2/27/20172/28/201721
27
Phase 2 complete
2/28/20172/28/2017250
28
Phase 3
2/17/20172/27/20171130
29
Implementation Module 3
2/17/20172/27/20171160
30
Development Task 1
2/17/20172/19/2017350
31
Development Task 2
2/17/20172/19/2017350
32
Testing
2/20/20172/21/201721
33
Bug fix
2/24/20172/25/201721
34
Customer review meeting
2/26/20172/27/201721
35
Phase 3 complete
2/27/20172/27/2017250

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 demo, Row mode is enabled for editing by mode of Grid EditSettings as 'Dialog'. You can start editing any row by double clicking on it or clicking on toolbar's Edit button, then the currently selected row will be shown on a dialog. You can change the row values and save edited data to the datasource.


More information on the data binding can be found in this documentation section.

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