jQWidgets Forums

jQuery UI Widgets Forums Plugins AngularJS jqx-grid does not initialize initrowdetails method

This topic contains 2 replies, has 3 voices, and was last updated by  briank 10 years, 7 months ago.

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

  • gordanvij
    Participant

    We are using jqx-grid in our project and using nested grids. In order to init the child grid the main grid setting need to be initialized using initrowdetails. But the initrowdetails does not get the method specified in settings object. If I pass an object to initrowdetails it gets initialized, but not a function.

    $scope.settings = {
      initrowdetails: function(index, parentelement,gridelement, row){
       console.log(index);
    },
    rowexpand: function(event){
     console.log($scope.grid.initrowdetails);
    }
    };
    
    <jqx-grid jqx-instance="grid" jqx-settings="settings"></jqx-grid>

    The rowexpand console log shows undefined.

    But if I say initrowdetails : ‘sometext’, console prints the text.
    The work around I am doing is to hook the initrowdetails method to grid on rowexpand.
    Please can you address this issue, or am I missing something.

    Thanks,
    Vijith


    Peter Stoev
    Keymaster

    Hi Vijith,

    That settings seems to be not supported in the current version of our AngularJS Directives Module.

    Best Regards,
    Peter Stoev

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


    briank
    Participant

    Vijith, you mention a workaround… could you expand on that? I am looking to find a way to make use of rowdetails within a jqwidgets grid using AngularJS. With initrowdetails not working in AngularJS I’m struggling with populating the rowdetailstemplate with row-specific content.

    Thanks,
    Brian

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

You must be logged in to reply to this topic.