jQWidgets Forums

jQuery UI Widgets Forums Grid Display row number at grid

Tagged: , , ,

This topic contains 4 replies, has 3 voices, and was last updated by  morgenweck 11 years, 9 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Display row number at grid #12019

    neong
    Participant

    How to display the row number in grid?

    Display row number at grid #12025

    Dimitar
    Participant

    Hello neong,

    If you mean to have the first column of your grid show the row numbers, please check out the Spreadsheet demo to see it done.

    If, however, you mean getting the number of a selected row, you might do the following:

                $('#jqxgrid').bind('rowselect', function (event) {
    var args = event.args;
    var row = args.rowindex;
    alert(row);
    });

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Display row number at grid #12099

    neong
    Participant

    Thanks Dimitar. Yes I want it like Spreadsheet row number. However, can jqxgrid to display/hide the row number by just control in jqxgrid properties? like “autoheight” ?

    Display row number at grid #12114

    Dimitar
    Participant

    Hi neong,

    You can hide or show the column, containing the rows numbers, using the methods hidecolumn and showcolumn.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Display row number at grid #26223

    morgenweck
    Participant

    I’m a little bit thick so do you happen to have a sample that can show adding a numbered column that will not change when items are sorted in a bound grid? Similar the the demo with a large data set but not as an id but rather as a row number and if one of the columns is sorted then the first column remains in numerical order.

    Thanks

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.