Search code examples
jqueryjqgridfree-jqgrid

how use serach box in select type jqgrid when edit inline


15.1 i use select in jqGrid. i need to be able search into select . this demo: https://jsfiddle.net/dnfk8hmr/95/

colModel: [
    { name: "act", template: "actions" },
    { name: "id", width: 50 },
    { name: "PackageCode", width: 110 , editable: true },
    { name: "Name", width: 200, editable: true },
    { name: "d", width: 100, editable: true ,edittype: 'select',
      editoptions: { value: 'FE:FedEx;TN:TNT;IN:Intim;FE2:FedEx2;TN2:TNT2;IN2:Intim2'}
    },
],

I think use dataInit:function(el){} jqGrid


Solution

  • i want Able to search combox .This solution

       dataInit: function (domElem) {
                $(domElem).addClass("js-example-basic-single");
               $('.js-example-basic-single').select2();
                                        }
    

    please see demo