jQWidgets Forums

jQuery UI Widgets Forums Grid error on expanding rowdetails

Tagged: ,

This topic contains 1 reply, has 1 voice, and was last updated by  maniac_1979 8 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • error on expanding rowdetails #87653

    maniac_1979
    Participant

    Hi All,

    When expanding my rowdetails I get the following error:

    jqx-all.js:7 Uncaught TypeError: Cannot read property ‘apply’ of undefined

    Please find code snippet attached:

    $scope.settings = {
            source: $scope.persons,
            width: 800,
            height: 300,
            rowdetails: true,
            rowdetailstemplate: {
              rowdetails: "<div style='margin: 10px;'>Row Details</div>",
              rowdetailsheight: 50
            },
            initrowdetails: getRowDetails,
    
            columns: [
              { text: 'Id', dataField: 'ID', width: 150 },
              { text: 'Name', dataField: 'firstname', width: 200 },
              { text: 'Report', dataField: 'report', width: 200 },
            ],
          }
    
          var getRowDetails = function (index, parentElement, gridElement, datarecord) {
            var tabsdiv = $($(parentElement).children()[0]);
            //tabsdiv.append("Details for: ")
          }
    

    Anybody who can help me out here?

    Thanks

    error on expanding rowdetails #87654

    maniac_1979
    Participant

    Never mind……I had to declare getRowDetails before $scope.settings……

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

You must be logged in to reply to this topic.