jquery - jqGrid pginput Size -



jquery - jqGrid pginput Size -

is there jqgrid way alter size of pginput? defaults me:

<input class="ui-pg-input" type="text" role="textbox" value="0" maxlength="7" size="2">

i haven't found 1 did following:

$('.ui-pg-input').attr('size', 6);

thanks.

jqgrid don't have alternative set size attribute of input box of pager. utilize next code (see here)

pginp= "<td dir='"+dir+"'>" + $.jgrid.format(ts.p.pgtext || "", "<input class='ui-pg-input' type='text' size='2' maxlength='7' value='0' role='textbox'/>", "<span id='sp_1_"+$.jgrid.jqid(pgid)+"'></span>")+"</td>";

where pgtext defined in language specific file. file grid.locale-en.js illustration contains text : "page {0} of {1}". method $.jgrid.format simple (see the code). makes text substitutions of numbers enclosed in {} (like {0}, {1} , {2}).

in general can set value of size attribute using pgtext:

pgtext: "page <input class='ui-pg-input' type='text' size='6' maxlength='7' value='0' role='textbox'/> of {1}",

to tell truth not find such way nice, work. in sentiment code

$('.ui-pg-input').attr('size', 6);

which utilize enough.

jquery jqgrid

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -