The autoSelect( object options ) when used in loadComplete keeps adding <option>s.
Ik solved it by doing:
1 2 3 4 5 6 7 8 9 10 |
loadComplete: function() { if (!$("#gs_periode > option").length ){ $('#grid252').jqGrid('autoSelect',{field:"periode",count_item:false,allValues:"Alles",direction:"desc"}); }; if (!$("#gs_soort > option").length ){ $('#grid252').jqGrid('autoSelect',{field:"soort",count_item:false,allValues:"Alles",direction:"desc"}); }; }, |
But the function itself should check if options need to be added.
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top