Hello,
I'm using jqGrid in connection with the PHP function json_encode() to create the grid configuration. This worked very well for me until the moment where I wanted to use the “editoptions” index inside my column model. The documentation states that it is possible to set the pairs as a string …
editoptions:{value:”1:One;2:Two”}
… or as an array…
editoptions:{value:{1:'One',2:'Two'}}
Using json_encode results in the following encoding:
“editoptions”:{“value”:{“Test”:”Alle”,”Tes2″:”One”}}}
As this is a valid JSON encoding I thought this should work with jqGrid but it doesn't. The effect is an error message stating…
$t.sopt.value.split is not a function (grid.custom.js)
Is this a known issue?
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top