jqgrid filterToolbar search input size -


i'm starting use filtertoolbar: mygrid.jqgrid('filtertoolbar', {stringresult: true, searchonenter: false, defaultsearch : "cn"});

my question if can control search inputs size -

update: it's height , width size .

thank's in advance.

if understand correct should include in colmodel in definition of column input size want restrict option like

searchoptions:{ attr: {maxlength: 5}} 

in example in corresponding input field of searching toolbar allowed type not more 5 characters.

updated: don't understand why need such behavior, can use datainit of searchoptions set height , width of input control. can use either jquery.css or jquery.height , jquery.width methods:

searchoptions:{     attr: {maxlength: 5},     datainit: function(elem) {         //$(elem).css({height:"30px", width:"40px"});         $(elem).height(30).width(40);     } } 

if increase height of control in searching toolbar should change additionally

var mygrid = $("#list"); // ... var $search_toolbar = $("tr.ui-search-toolbar", mygrid[0].grid.hdiv); $search_toolbar.height(30); 

you should of course after call of filtertoolbar create searching toolbar.

see small demo here.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -