jQWidgets Forums

jQuery UI Widgets Forums Grid Auto Selected last row

Tagged: , , , ,

This topic contains 2 replies, has 2 voices, and was last updated by  dke 12 years, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Auto Selected last row #13245

    dke
    Participant

    Hi,

    How do I auto selected the last row after the Grid finish loaded?

    Thanks in advance.

    Auto Selected last row #13262

    Dimitar
    Participant

    Hello dke,

    Please take a look at the following code snippet:

                $('#jqxgrid').bind('initialized', function () {
    var rows = $("#jqxgrid").jqxGrid('getrows');
    var rowsCount = rows.length;
    $("#jqxgrid").jqxGrid('selectrow', rowsCount - 1);
    });

    We hope it is helpful to you.

    Best Regards,
    Dimitar

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

    Auto Selected last row #13322

    dke
    Participant

    Hi Dimitar,

    It works perfect again this time.

    Thanks!!!

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

You must be logged in to reply to this topic.