New Product Launch - BoldDesk !
Introducing help desk ticketing software.
New Product LaunchBoldDesk: Help desk ticketing software starts at $10 for 3 agents.
Try it for free.//Grid definition contains: <GridEvents OnActionBegin="OnActionBegin" TValue="MyClass"></GridEvents><EjsDataManager AdaptorInstance="@typeof(MyCustomAdaptor)"
Adaptor="Adaptors.CustomAdaptor">
</EjsDataManager>
<GridEditSettings AllowAdding="true"
AllowDeleting="true"
AllowEditing="true"
Mode="@EditMode.Dialog">
<Template>
@{
var myObj = (context as MyClass);
<MyEditor MyFiled="@myObj" MyDialogMessageProvider="@_myDialogMessageProvider"/>
}
</Template>
</GridEditSettings>
//code of OnActionBegin:public void OnActionBegin(ActionEventArgs<MyClass> args)
{
if (args.Action == "add")
{
//args.Data validations here
{
//prevent close dialog and show message code here
args.Cancel = true;
}
}
}