|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
hi, all<br /> Can somebody explain me: which string`s format I must use in order to<br /> construct select element in jqGrid if I use function ? Quote from<br /> documentation: "When defined as function - the function should return<br /> either formated string or object."<br /> <br /> i.e. in colModel I have<br /> {<br /> name:'ContactType',index:'ContactType',...,editable:true,edittype:"select",editoptions:{value:getContactTypeTA()},...}<br /> and function definition is next<br /> <br /> function getContactTypeTA()<br /> { return "{1:"Type1",2:"Type2"}";}<br /> <br /> In this example function return "either formated" string - and that's<br /> really so: {1:"Type1",2:"Type2"}. BUT !!! In jqGrind that's don' work.<br /> <strong>Where can I find format for "either formated string" ?</strong><br /> Any suggestion?<br /> <br /> Method supposed here<br /> http://geekswithblogs.net/renso/archive/2009/07/02/jqgrid-dynamically-loading-select-options.aspx<br /> <br /> don't work too.<br /> <br /> P.S. It is necessary use scheme without php (editoptions: { size:<br /> 1,dataUrl: 'Includes/tblJobSelect.php',...}), because it use GET and I'm<br /> use POST. |
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top