I’m starting to use filtertoolbar: myGrid.jqGrid('filterToolbar', {stringResult: true, searchOnEnter: false, defaultSearch : "cn"});
My question Is If I can control the search inputs size –
UPDATE: It’s height and width size .
Thank’s In Advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If I understand you correct you should include in
colModelin the definition of the column which input size you want to restrict the option likeIn the example in the corresponding input field of the searching toolbar will be allowed to type not more as five characters.
UPDATED: I don’t understand why you need such behavior, but you can use
dataInitof thesearchoptionsto set height and width of the input control. To do this you can use either jQuery.css or jQuery.height and jQuery.width methods:If you increase the height of the control in the searching toolbar you should change additionally
You should do this of course after the call of
filterToolbarwhich create the searching toolbar.See small demo here.