[CLOSED] How can I get all selectedIds from gridpanel?

  1. #1

    [CLOSED] How can I get all selectedIds from gridpanel?

    Hi,

    I had code written in v1.5:
    for (var id in #{gridPanel}.selectedIds) { return true; }; Ext.Msg.alert('alert', 'alert.'); return false;
    what is equivalent .selectedIds in v2.x ?

    Thanks,
    ViDom
    Last edited by Daniil; May 10, 2013 at 12:42 PM. Reason: [CLOSED]
  2. #2
    I don't remember there ever being a .selectedIds property on the GridPanel. At least not as part of the public API.

    Can you link to that property in the docs?

    You should be able to get an array of selected records with the following:

    #{GridPanel1}.getSelectionModel().getSelection()
    http://docs.sencha.com/extjs/4.2.0/#...d-getSelection

    Once you have an array of selected records, you can loop through and get individual data elements from each.

    Hope this helps.
    Geoffrey McGill
    Founder
  3. #3
    But getSelection() give only selected items from current page I need to get it from all pages (SelectionMemomy="true")

    I doesn't found this in docs.

    here is answer of @Daniil on my previous question on March 2011. Post
    Last edited by geoffrey.mcgill; Aug 26, 2015 at 6:02 AM.
  4. #4
    Hi,

    That functionality was organized as a SelectionMemory plugin. Please use:
    grid.getSelectionMemory().selectedIds
  5. #5
    That's exactly what I asked about :)
    Thanks Guys for help;) thread can be closed
    Last edited by geoffrey.mcgill; Aug 26, 2015 at 6:02 AM.

Similar Threads

  1. Replies: 2
    Last Post: Jan 28, 2013, 1:08 AM

Tags for this Thread

Posting Permissions