[CLOSED] GridPanel, CheckboxSelectionModel SelectedRecord

  1. #1

    [CLOSED] GridPanel, CheckboxSelectionModel SelectedRecord

    In my GridPanel, I'm using CheckboxSelectionModel with Simple Mode. I'm using SelectionChange Listener to load details of currently selected record.
    This works when using Single select mode - but I want this with Simple Mode.

    The problem is it always shows the first selected record due to the code below:
    <SelectionChange Handler="if(selected[0]) {
                                        App.ImgDetailPanel.loadRecord(selected[0]);
                                        }" />
    Instead of using selected[0], how can I pass selected[SELECTEDINDEX] record.

    Thanks
    Last edited by Daniil; Apr 28, 2015 at 9:34 AM. Reason: Please use [CODE] tags, [CLOSED]
  2. #2
    Hi @webpresence,

    You could try with
    App.ImgDetailPanel.loadRecord(selected[selected.length - 1]);

Similar Threads

  1. Replies: 10
    Last Post: Oct 28, 2013, 3:24 PM
  2. CheckBoxSelectionModel Issue in GridPanel
    By shaileshsakaria in forum 2.x Help
    Replies: 0
    Last Post: Feb 27, 2013, 12:11 PM
  3. [CLOSED] GridPanel and CheckBoxSelectionModel
    By supera in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 25, 2012, 2:51 PM
  4. [CLOSED] GridPanel and CheckBoxSelectionModel
    By supera in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 25, 2012, 11:45 AM
  5. GridPanel CheckboxSelectionModel
    By winner0819 in forum 1.x Help
    Replies: 2
    Last Post: Dec 12, 2011, 3:00 AM

Tags for this Thread

Posting Permissions