Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
150678 | Jan 15,2020 10:16 PM UTC | May 19,2020 06:30 AM UTC | Blazor | 9 |
![]() |
Tags: TreeGrid |
<EjsTreeGrid ………….>
……………………….
<TreeGridEvents OnActionComplete="Complete" TValue="TreeData.BusinessObject"></TreeGridEvents>
<TreeGridColumns>
…………………
</TreeGridColumns>
</EjsTreeGrid>
@code{
……………………….
private void Complete(ActionEventArgs<TreeData.BusinessObject> args)
{
if (args.RequestType.ToString() == "Add")
{
//Do your stuff here.
}
if (args.RequestType.ToString() == "BeginEdit")
{
// Do your stuff here.
}
if (args.RequestType.ToString() == "Save")
{
// Do your stuff here.
}
if (args.RequestType.ToString() == "Delete")
{
// Do your stuff here.
}
}
} |
<EjsTreeGrid DataSource="@TreeGridData" …………. >
…………….
<TreeGridColumns>
<TreeGridColumn Field="TaskId" HeaderText="Task ID" IsPrimaryKey="true" Width="80" TextAlign="Syncfusion.EJ2.Blazor.Grids.TextAlign.Right"></TreeGridColumn>
…………………….
<TreeGridColumn HeaderText="Manage Records" Width="150" Commands="@commands"></TreeGridColumn>
</TreeGridColumns>
</EjsTreeGrid> |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.