Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
145554 | Jun 27,2019 07:00 PM UTC | Jul 1,2019 11:54 PM UTC | Blazor | 3 |
![]() |
Tags: Grid |
<EjsGrid id="Grid" ModelType="model" DataSource="gridData" OnActionBegin="@begin" Height="100%" Toolbar="@(new List<string>() { "Add", "Edit" , "Delete" , "Cancel" , "Update" })">
<GridEditSettings AllowEditing="true" AllowAdding="true" AllowDeleting="true"></GridEditSettings>
…………………………………….
</EjsGrid>
public void begin(SortEventArgs args)
{
if (args.RequestType.ToString() == "BeginEdit" || args.RequestType.ToString() == "Add") // for prevent record from editing & adding
{
args.Cancel = true; // to prevent the default action
// perform your action here
}
} |
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.