jQWidgets Forums

jQuery UI Widgets Forums Grid two jqxGrid in same ng-controller – problem with settings.apply()

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 10 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • badera
    Participant

    Dear jqwidgets Support Team!

    I use jqWidgets together with AngularJS; therefore I use jqxGrid this way: <jqx-grid jqx-create=”gridSettings” jqx-settings=”gridSettings”> …
    This will add the apply(..) Method to $scope.gridSettings.

    However, I encountered problems having two concurrent jqx-grid widgets in one controller: none of the apply() methods of the settings object will work anymore – “undefined” is not a function is raised, if I like to call apply (before having a second grid, it worked well).

    Instead of using apply over the settings object, I use now e.g. jqx-instance=”mygrid” attribute to have $scope.mygrid accessible and then, I can successfully call $scope.mygrid.apply(..).

    Is this a bug? – I currently have no minimal example, since I have not yet the time to stripe all around to have it minimal – I assume that you will be able to quickly test this (e.g. by just making a master-details example for AngularJS) 🙂

    Thansk in advance for your help!
    best regards,
    badera


    Peter Stoev
    Keymaster

    Hi badera,

    Please, post your AngularJS questions in our Forum about AngularJS. In addition, please include a small html page which illustrates your issue.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.