jQWidgets Forums

jQuery UI Widgets Forums Grid getRowid based on value

This topic contains 3 replies, has 2 voices, and was last updated by  Adarsha 10 years, 8 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • getRowid based on value #59026

    Adarsha
    Participant

    Hi,

    I ave a jqxGrid with two columns “Fist Name” and “Last Name”. Lets say there are 100 rows in a grid and there are 35 rows with first name “John”.
    If i want to delete all the rows with first name “John” how can i do this?

    Is there any way that i can selecte the rowIDS using the row value? so that i can pass them to deleterow method.

    Can any one please help me. Thanks !

    getRowid based on value #59030

    Peter Stoev
    Keymaster

    Hi adarsha,

    You can get the rows through the “getrows” method. Then you can loop through them and put these which you want to delete in a separate array. Then you can delete them through the deleterow method.

    Best Regards,
    Peter Stoev

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

    getRowid based on value #59050

    Adarsha
    Participant

    thanks !

    getRowid based on value #59080

    Adarsha
    Participant

    One small issue. When i issue ‘getrows’ I get empty rows as well. Is thr any way to filter empty row and select only those rows which has data while issuing ‘getrow’. If yes, it will avaoid unnecessary loop if i have 1000 rows and i have only 5-10 rows with data.

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

You must be logged in to reply to this topic.