jQuery UI Widgets › Forums › General Discussions › Plugins › AngularJS › updating treegrid with updateBoundData(0
Tagged: angularjs treegrid
This topic contains 3 replies, has 2 voices, and was last updated by Peter Stoev 11 years, 3 months ago.
-
Author
-
Hi team,
I am trying to call the
updateBoundData()method on the Angular jqxTreeGrid, but it’s not working. It simply returnsundefined is not a function.The only example code I can find is via your api page, and here’s the jsfiddle; however it is NOT an Angular example :
http://jsfiddle.net/jqwidgets/7J2qP/
Your other thread claims that the
updateBoundData()method is available, but I have yet to see a sample. And it doesn’t work for me.Can you please look at my image and help me clear up my confusion or misuse of the method ?
http://www.bobmazzo.com/temp/jqx-treegrid.png

Furthermore, when I debug in Chrome console, here’s what happens when I attempt to call that method :
$scope.result.dataModel.treeGridOptions.jqxTreeGrid.updateBoundData()
Uncaught TypeError: undefined is not a functionAlso trying:
$scope.result.dataModel.treeGridOptions.apply("updateBoundData");thanks for your help,
BobHi Bob Mazzo,
The method is incorrectly called and this one is invalid API here. Please, take a look at the jqxAngular plug-in Documentation page to learn how to call methods.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/is there any chance that you could actually provide solid examples rather than just mention that you have documentation somewhere ? It’s too vague of an answer. I have yet to find one angular example implementing this method.
In addition, your previous thread states the correct way of calling it as follows:
‘$scope.settings.apply(‘updatebounddata’)’
My call is can initially be made as
$scope.result.dataModel.treeGridOptions.apply("updateBoundData");then my final attempt can be on the widget itself (i.e. I’m integrating a dashboard widget framework)
widget.dataModel.treeGridOptions.apply("updatebounddata");but it doesn’t re-render the treegrid.I’m using 3.5, by the way.
Hi bobmazzo,
The documentation on our website is about the current version which is 3.7, not about 3.5. I don’t know what you’re calling because you are posting code and I assume that you use the same code and not something else. The code which you posted in this topic will not work because the method is called incorrectly.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.