Search code examples
jqgrid

Apply a label to the rowlist dropdown in jqgrid


jqgrid's rowlist option is an array of integers that it uses to construct a dropdown; the user makes a selection from the dropdown to specify how many rows to see on the page. But there's no label next to the dropdown to tell the user what it's for. Has anyone come up with a tidy solution to putting an explanatory label of text next to this dropdown?


Solution

  • jQuery("#<pager> .ui-pg-selbox").closest("td").before("<td dir='ltr'>No. Of Rows </td>");
    

    Where <pager> is the id of the grid's pager.