Get all checked rows from GridPanel

  1. #1

    Get all checked rows from GridPanel

    Hi.
    How can I get the full checked rows from a GridPanel by codebehind?
    I'm using the CheckboxSelectionModel, but I just can get the RowIndex or the RecordID. I need the full row with all the data.

    I hope you can help me.

    Thanks.
  2. #2
    use this script to get json data
    var getSelection = function (grid) {
        var selection = grid.getSelectionModel().getSelection(),
            xdata = [];
        Ext.each(selection, function (r) {
            xdata.push(r.data);
        });
        return xdata;
    };
    Last edited by Daniil; Aug 17, 2015 at 11:10 AM. Reason: Please use [CODE] tags
  3. #3
    Hi @spereyra,

    Welcome to the Ext.NET forums!

    Please clarify did @azat's suggestion help you?

    @azat, thank you for the help on the forums!

Similar Threads

  1. Replies: 30
    Last Post: Mar 21, 2014, 4:42 AM
  2. Replies: 4
    Last Post: Jul 30, 2013, 5:29 PM
  3. clear checked rows after reload the grid panel
    By hongxue in forum 2.x Help
    Replies: 0
    Last Post: Jun 20, 2013, 1:38 AM
  4. [CLOSED] GridPanel.Rows.Changing Background Color of Rows
    By supera in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 01, 2012, 5:18 PM
  5. how to get checked grid rows values in MVC
    By vs.mukesh in forum 1.x Help
    Replies: 0
    Last Post: Jun 23, 2010, 3:23 PM

Tags for this Thread

Posting Permissions