ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: Ron Hess on October 07, 2013, 12:11:07 am

Title: setting editable == 'function' in column model
Post by: Ron Hess 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
Title: Re: setting editable == 'function' in column model
Post by: Ron Hess 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 });
Title: Re: setting editable == 'function' in column model
Post by: Ron Hess on October 10, 2013, 08:44:53 pm
The 2.0.0a version has fixed this issue, thanks.