BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
[web.config] <appSettings> ------- ------- <add key="UnobtrusiveJavaScriptEnabled" value="true" /> </appSettings>
[_Layout.cshtml] <link rel='nofollow' href="@Url.Content("~/Content/ej/web/Default-theme/ej.widgets.all.min.css")"rel="stylesheet"/> <script src="@Url.Content("~/Scripts/jquery-1.10.2.min.js")"></script> <script src="@Url.Content("~/Scripts/jsrender.min.js")"></script> <script src="@Url.Content("~/Scripts/jquery.easing-1.3.min.js")"></script> <script src="@Url.Content("~/Scripts/jquery.globalize.min.js")"></script> <script src="@Url.Content("~/Scripts/ej/ej.web.all.min.js")"></script> <script src="@Url.Content("~/Scripts/ej/ej.unobtrusive.min.js")"></script> |
We can call the controller ActionResult by using AJAX post and return the Chart data source to partial view model. The RenderPartial html helper will render the chart control from partial view and we have to initialize the control by using ej.widget.init method in the AJAX success function.
[JS]
$("#partialChart").html(data);
ej.widget.init($("#partialChart"));
We have attached the sample for your reference
Regards,
Deepaa
Hi Matheu,
Thanks for contacting syncfusion support.
Currently we don’t have inbuilt function to achieve your requirement (to generate a treeview where only certain nodes have checkboxes). But we can achieve this manually by removing the checkbox in the “create” event. Specify the class to the desired nodes which need to be removed using htmlattributes. The class will be added to the “li” elements and from the obtained ”li” elements find the corresponding “span” elements (checkbox) associated with it and remove it. Please refer the following snippet.
<script> var obj; function onCreate(e) { obj = $("#tree").data("ejTreeView"); var removecheck = this.element.find(".remove"); removecheck.each(function (i, value) { $(removecheck[i]).find(".e-chkbox-wrap:first").remove(); }) } </script> |
We have attached the sample for your convenience.
http://www.syncfusion.com/downloads/support/forum/120614/ze/Treecheck618079120
To know more about the list of properties, methods, and events available in TreeView, please check the following link
http://help.syncfusion.com/js/api/ejtreeview
Regards,
Francis Paul A