I’m trying to build the columns of the grid dynamically. One of my columns is a dropdownlist which I am passing like this through my JSON object:
{“columntype”:”dropdownlist”,”datafield”:”Include”,”text”:”Include”,”width”:50,”initeditor”:”initeditor”}
I seem to be able to pass other methods in quotes this way but not “initeditor” or “createeditor”. I get the error G.initeditor is not a function. Evertyhing works when this is manually in the js file like this:
{“columntype”:”dropdownlist”,”datafield”:”Include”,”text”:”Include”,”width”:50,”initeditor”:initeditor}
Is this there something I could do about this or are some methods not allowed to be passed as strings through JSON?