Thursday, 15 August 2013

jquery - How to show row numbers greater than 9999 in free jqgrid -


Answer code

is used to create buttons that toggle line numbers .

  $ grid.jqGrid ("navButtonAdd", "#grid_toppager", {buttonicon: "fa-list-ol", symbol ovity text: right, caption: '', id: "rollon Digit ", onClickButton: function (option, e) {var $ me = $ (e.currentTarget); if ($ grid.jqGrid ('getGridParam', 'rownumbers') & amp; $ grid [0] .P.CollModel [0] .hidden) {$ grid.jercid ('showcoll', 'rn'); $ me.addClass ("UI-stat-active");} and {$ grid.jqGrid ('hideCol', 'rn '); $ Me.removeClass ("UI-State-Active");} resizeGrid (); Sevendostat ();}}); If (isColState & MyColumnsState.Rownumbers) {$ ("#RowNumbers"). Click (); }  

If the line number is greater than 9999, then the last digit is not showing.

Row numbers appear as 10000 .. 1000 9000, 10010 1001 etc. To show the full line number? I've tried different zoom levels in the browser, which will not show the full line number. The thing to change shape, but it seems that the row number is not resizable in size.

The rownumWidth option in jqGrid that when the grid is created rn < / Code> column If you need to set the width of the column dynamically , then you use the setColWidth And can. Indicates that you can dynamically set the speed of the rn column is a part of the method setColWidth , so that you can use it directly.


No comments:

Post a Comment