Author Topic: pq_detail expand on new row  (Read 2472 times)

daverene

  • Newbie
  • *
  • Posts: 23
    • View Profile
pq_detail expand on new row
« on: February 08, 2018, 10:01:04 am »
Hi I have a nested detail grid which does not show and expand when adding a new row to the grid. See below how I add a new row to the grid at the top.
I press a button in the main grid toolbar ( + New Leave) which adds the blank row but does not display the expand detail grid in the detail cell.

var rowData = { Visible: true, IncludeOracleExport: true, IncludeTimesheetReport: true, IncludeForceAbsent: true }; //empty row

var rowIndx = this.addRow({ rowData: rowData, checkEditable: true, rowIndx: 0 });
this.goToPage({ rowIndx: rowIndx });                       
this.editFirstCellInRow({ rowIndx: rowIndx });
rowData['pq_detail'] = { 'show': true };


this is my definition of the detail cell in my main grid

 {   title: "EBA's", minWidth: 50, type: "detail", resizable: false, editable: false }

This is my detailModel definition in my main grid.

 detailModel: {
                     cache: true,
                     collapseIcon: "ui-icon-plus",
                     expandIcon: "ui-icon-minus",
                     
                     init: function (ui) {
                         var rowData = ui.rowData,
                         EBAobj = gridPayTypeEBA($PayType, rowData), //get a copy of gridPaytypeEBA                       
                             $grid = $("<div></div>").pqGrid(EBAobj); //init the detail grid.

                         return $grid;
                     }
                 }
« Last Edit: February 08, 2018, 10:42:51 am by daverene »

daverene

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: pq_detail expand on new row
« Reply #1 on: February 16, 2018, 04:23:11 am »
Do you need anymore information to help with this problem?