Angular Treeview with a Template
Thanks for using Syncfusion products,
We have analysed your requirement and prepared the simple sample based on your requirement.
Please get the sample from below location
Sample
In given sample we have formed the treeview items in div element and referred this template formation in e-template property in angular treeview.
Please check the given sample let us know if it helps. If we misunderstood your queries, please provide more details about the requirement that will be easy for us to provide the exact solution
Please let us know if you have further queries,
Regards,
Sasikala Nagarajan
Attachment: TreeviewAngular_50b1d03a.zip
Thanks for the update,
We have analyzed your requirement and we can achieve your requirement using our existing public method checknode and unchecknode. These methods used to check/uncheck the selected item in treeview control.
Please get the sample from below location
Sample
Please refer the below code snippet
$scope.instanceItemChecked1 = function (args) { obj = $("#instanceSelectorTreeView1").data("ejTreeView"); if (args.id == "1") { angular.forEach($scope.instanceTreeViewList1, function (item) { if (item.id != "1") { item.isChecked = true; obj.checkNode($('li#' + item.id)); } }); $scope.$apply(); } }; $scope.instanceItemUnchecked1 = function (args) { obj = $("#instanceSelectorTreeView1").data("ejTreeView"); if (args.id == "1") { angular.forEach($scope.instanceTreeViewList1, function (item) { if (item.id != "1") { item.isChecked = false; obj.uncheckNode($('li#' + item.id)); } }); $scope.$apply(); }; |
Please use given code snippet to achieve the reported requirement and let us know if you further queries.
Regards,
Sasikala Nagarajan
Hi Rob, Sorry for the inconvenience caused. Currently there is no support for deep watch functionality in ejAngular. Already we have logged this as a feature request (“Deep watch functionality in ej angular”) in our database. A support incident to track the status of this feature has been created under your account. Please log on to our support website to check for further updates. https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents Regards, Sasikala Nagarajan |
- 5 Replies
- 2 Participants
-
RO Rob ONeill
- May 1, 2015 02:01 PM UTC
- May 7, 2015 12:52 PM UTC