Hi Andrea,
We can interact with Add dialog elements before it save to dataSource using “ActionBegin” client side event. Please refer the following code example for details.
@(Html.EJ().Gantt("Gantt"). //… ClientSideEvents(cl => { cl.ActionBegin("ActionBegin"); }). ) <script type="text/javascript"> function ActionBegin(args) { if (args.requestType == "save") { args.data.Name = "Dynamically Edited"; args.data.EndDate = "2/27/2014"; } } </script> |
We have also prepared a sample based on this and you can find the sample under the following location.
Sample: http://www.syncfusion.com/downloads/support/directtrac/general/ze/AddDialog1078207201
Regards,
Mahalakshmi K.
Hi Andrea,
At present there is no support for event to trigger before the Dialog box get rendered. Hence have already logged and working on the Usability feature regarding this. A support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates.
https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents
Please let us know if you need further assistance on this.
Regards,
Mahalakshmi K.