BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Hi Julio,
We have achieved your requirement “create the Control in the client-side and then execute it in the server-side (show dialog)” and please find the sample under the following location,
Sample: Sample
In this above sample, we have created the wrapper for dialog control in view page and set the property “showOnInit” as false via codebehind.Initially it doesn’t shows the dialog.Please find the wrapper code,
<code>
@{Html.EJ().Dialog("basicDialog",Model).Render();}
</code>
In the button click event, we have enabled this property in the controller as shown below code.Now the dialog control get displays.
<code>
public ActionResult Index(string basicDialog)
{
Syncfusion.JavaScript.Models.DialogProperties dia = new Syncfusion.JavaScript.Models.DialogProperties();
dia.ShowOnInit = true;
return View(dia);
}
</code>
Please let us know if you have any further assistance,
Regards,
Kasithangam
Hi Julio,
Thanks for your update.
We need to set the contentTemplate property in controller page as shown below code,
<code>
Syncfusion.JavaScript.Models.DialogProperties dia = new Syncfusion.JavaScript.Models.DialogProperties();
dia.ShowOnInit = true;
dia.ContentTemplate = new MvcTemplate<object>
{
RazorViewTemplate = (data) =>
{
return "<div>Message</div>";
}
};
return View(dia);
</code>
Also we have modified the sample based on this and please find the sample under the following location,
Sample: Sample
Please let us know if you have any further assistance,
Regards,
Kasithangam