Home › Forums › Guriddo jqGrid JS › Help › How to get ColModel Name and Width
hiiii…
i'm a newbie..
i have a grid that code like that
jQuery('#tableGrid').jqGrid({
Hi zenixgrace,
I believe that this code is what you want …
var a = $(“#tableGrid”).jqGrid('getGridParam','colModel');
alert(a[0].name);
alert(a[0].width);
alert(a[1].name);
alert(a[1].width);
etc.
Cheers,
Michael
thanks michaell…
it works..
u know what i want..
😀
but why the return value is not same with the origin value
in that example i set col no width 25 when i call the col no width its return 24..
it occur at the others col width..
it's a bug or not?
Best Regards,
Zenixgrace
Hi Zenixgrace,
I'm not sure to be honest, but i do know that the width returned will be the current width after resizing the columns.
thanks u michael..
your information are very help me..
thanks u so much sir..
Best regards,
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS