jQuery UI Widgets Forums General Discussions Plugins AngularJS updating treegrid with updateBoundData(0

This topic contains 3 replies, has 2 voices, and was last updated by  Peter Stoev 11 years, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • updating treegrid with updateBoundData(0 #67249

    bobmazzo
    Participant

    Hi team,

    I am trying to call the updateBoundData() method on the Angular jqxTreeGrid, but it’s not working. It simply returns undefined 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

    treegrid

    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 function

    Also trying: $scope.result.dataModel.treeGridOptions.apply("updateBoundData");

    thanks for your help,
    Bob

    updating treegrid with updateBoundData(0 #67255

    Peter Stoev
    Keymaster

    Hi 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 Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    updating treegrid with updateBoundData(0 #67258

    bobmazzo
    Participant

    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.

    updating treegrid with updateBoundData(0 #67285

    Peter Stoev
    Keymaster

    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 Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.