jQuery UI Widgets Forums Grid Selecting Grid Row

Tagged: ,

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 12 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Selecting Grid Row #4311

    astash
    Participant

    Hello,

    I am looking at trying to push the data of a selected row to autofill a form.  Similar in theory of Row Details.  How would I do this using row selection and bring all of a single data row back to autofill my form.  Any help would be appreciated, thanks

    Selecting Grid Row #4322

    Peter Stoev
    Keymaster

    Hi astash,

    To get the data from a selected Grid row, you can do the following:

                    // get selected index.
    var selectedIndex = $("#jqxgrid").jqxGrid('getselectedrowindex');
    // get the data of the selected row.
    var rowData = $("#jqxgrid").jqxGrid('getrowdata', selectedIndex);

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.