Author Topic: setting editable == 'function' in column model  (Read 4769 times)

Ron Hess

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 19
    • View Profile
setting editable == 'function' in column model
« on: October 07, 2013, 12:11:07 am »
i get an exception from this line
--
[11:37:37.209] ReferenceError: dataIndx is not defined @ https://c.cs11.visual.force.com/resource/.... 2272

on our about line 2272 in the 2.0.0 pro src is the call to my function, however dataIndx is not in scope

      if(typeof cEditable=="function"){               
                var rowIndx = objP.rowIndx,
                    rowData=thisOptions.dataModel.data[rowIndx];               
                 return cEditable.call(this.element, {rowIndx: rowIndx, rowData:rowData,colIndx:colIndx, dataIndx:dataIndx });               
           }


i will try to remove dataIndx from this line

Ron Hess

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: setting editable == 'function' in column model
« Reply #1 on: October 08, 2013, 12:54:32 am »
i can confirm that my code is working with this change to pqgrid.dev.js  ( remove dataIndx:dataIndx)

return cEditable.call(this.element, {
                      rowIndx: rowIndx,
                      rowData:rowData,
                      colIndx:colIndx });

Ron Hess

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: setting editable == 'function' in column model
« Reply #2 on: October 10, 2013, 08:44:53 pm »
The 2.0.0a version has fixed this issue, thanks.