Edit Types in ASP.NET Core Tree Grid Component
18 Nov 20182 minutes to read
Cell edit type and its params
The editType of e-treegrid-column tag helper is used to customize the edit type of the particular column. You can set the editType based on data type of the column.
-
numericedit-NumericTextBoxcomponent for integers, double, and decimal data types. -
defaultedit-TextBoxcomponent for string data type. -
dropdownedit-DropDownListcomponent for list data type. -
booleanedit-CheckBoxcomponent for boolean data type. -
datepickeredit-DatePickercomponent for date data type. -
datetimepickeredit-DateTimePickercomponent for date time data type.
Also, you can customize model of the editType component through the params in edit property of e-treegrid-column tag helper .
The following table describes cell edit type component and their corresponding edit params of the column.
| Component | Example |
|---|---|
NumericTextBox |
params: { decimals: 2, value: 5 } |
TextBox |
- |
DropDownList |
params: { value: ‘Germany’ } |
Checkbox |
params: { checked: true} |
DatePicker |
params: { format:’dd.MM.yyyy’ } |
DateTimePicker |
params: { value: new Date() } |
NOTE
If edit type is not defined in the column, then it will be considered as the stringedit type (Textbox component).
You can refer to ourASP.NET Core Tree Gridfeature tour page for its groundbreaking feature representations. You can also explore our ASP.NET Core Tree Grid exampleASP.NET Core Tree Grid exampleto knows how to present and manipulate data.