jQWidgets Forums

jQuery UI Widgets Forums Grid Get selected row IDs

This topic contains 2 replies, has 2 voices, and was last updated by  userbob 11 years, 6 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Get selected row IDs #46514

    userbob
    Participant

    Hi,

    Hopefully a simple on this but I cannot find this information in the API.

    So how do I get a list of the ID’s which have been selected in the grid. Irrespective of where they are in the grid i.e. may not be visible.

    Facts I do know,
    I can get the same information by linking to the select events and capturing a list as each is selected
    I can get the information by getting the indexes then looping through those to get the ID’s

    However I was wondering if there is a shortcut method?

    Regards,

    Richard

    Get selected row IDs #46516

    Peter Stoev
    Keymaster

    Hi Richard,

    There is no shortcut method. You can get the selected indexes by using the “getselectedrowindexes” method and you will then have to loop through them. Each row in that array should have “uid” member which stores the unique id.

    Best Regards,
    Peter Stoev

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

    Get selected row IDs #46576

    userbob
    Participant

    Thanks for the response, I will do as you say but maybe worth adding this shortcut for a future release?

    Regards,

    Richard

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

You must be logged in to reply to this topic.