ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: Ron Hess on October 03, 2013, 10:01:37 pm
-
This must be super simple, but i'm stuck , I have a custom editor which was working fine in the non-pro version, now just by switching to Pro, this editor is never loaded or called.
my editor function does not see (not called) when user clicks on the cell, i'm thinking it's a simple config flag that i must include ?
update
i think the editor is no longer a function, but an object with a pointer to a function, will try something like this
colM.editor = { type:myfunction, style:'', attr: '', cls:'' }
-
if i pass a function into the object that colModel[].editor expects { type: myfunction }
I get this from pqgrid
> Uncaught ReferenceError: oper is not defined pqgrid.dev.js:516
the line number is wrong, since it is from a timeout, so
debugged this down to, i think, a cut-paste error in the source code.
On line 3966
if(typeof edtype=="function"){
inp = edtype.call(that,
{
$cell: $cell,
cellData: cellData,
oper: oper,
cls: cls,
dataIndx: dataIndx
}
);
Note that: oper is not in scope at this time, thus the exception
I don't have a fix yet, will try commenting out this line "oper: oper,"
-
on or about 3965 i am using this code now, appears to work:
if(typeof edtype=="function"){
inp = edtype.call(that,
{
$cell: $cell,
cellData: cellData,
rowData: rowData,
colIndx: colIndx,
cls: cls,
dataIndx: dataIndx
}
);