BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
<div id="treeContainer"> </div>
function btnClick(e) { var wp = $("#target").data("ejWaitingPopup"); wp.show(); var ddlBudget = $("#ddlBudget").data("ejDropDownList"); var curBudgetId = ddlBudget.getSelectedValue(); $("#treeContainer").load('@Url.Action("LoadCpmsBudget")', { idBudget: curBudgetId },completeLoadBudget ); //setTimeout(success, 5000); }
Hi Andrea,
Thanks for using Syncfusion products.
Query: This works when I have defined the items directly in the EJ().TreeView Helper. If I use the DataSource with local data in the Partial View, it will not build (There is only the container div)
While using AJAX or dynamic page updates, the HTML element will not automatically converted into JS components. So, we need to re-init the container in which we are going to load the component. Please refer the below code,
<script> function load() { $("#treeContainer").load('@Url.Action("Music")', function () { ej.widget.init($("#treeContainer")); }); } </script>
|
Also, we have prepared a sample to showcase your requirement. Please download the sample from the following location
http://www.syncfusion.com/downloads/support/directtrac/131251/WebApplication61695399235.zip
To know more about the unobtrusive support, and AJAX/dynamic page updates please refer the below link
http://help.syncfusion.com/ug/js/documents/ajaxdynamicpageupdat.htm
You can find the getting started documentations for MVC components and the “concepts and features” of each components from the following link
http://help.syncfusion.com/web
Also, we have moved this forum thread under ASP.NET MVC platform.
Please let us know if you have further queries.
Regards,
HariKrishnan
Hi Andrea,
Thanks for using Syncfusion products.
Query: This works when I have defined the items directly in the EJ().TreeView Helper. If I use the DataSource with local data in the Partial View, it will not build (There is only the container div)
While using AJAX or dynamic page updates, the HTML element will not automatically converted into JS components. So, we need to re-init the container in which we are going to load the component. Please refer the below code,
<script>
function load() {
$("#treeContainer").load('@Url.Action("Music")', function () {
ej.widget.init($("#treeContainer"));
});
}
</script>
Also, we have prepared a sample to showcase your requirement. Please download the sample from the following location
http://www.syncfusion.com/downloads/support/directtrac/131251/WebApplication61695399235.zip
To know more about the unobtrusive support, and AJAX/dynamic page updates please refer the below link
http://help.syncfusion.com/ug/js/documents/ajaxdynamicpageupdat.htm
You can find the getting started documentations for MVC components and the “concepts and features” of each components from the following link
http://help.syncfusion.com/web
Also, we have moved this forum thread under ASP.NET MVC platform.
Please let us know if you have further queries.
Regards,
HariKrishnan
Hi Andrea,
Thanks for your update.
We have analyzed the above query and found that in Unobstrusive mode special
characters(') will not parse properly causing error in sample.
So, we have modified WorldMap.json file in order to render
WorldMap data without any error.
Please find the modified WorldMap.json file
Please let us know in case of any queries.
Regards,
Mohana V