Results 1 to 3 of 3

Thread: getSelection() returns Store data, not grid data

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    2
    Vote Rating
    0
      0  

    Default Unanswered: getSelection() returns Store data, not grid data

    I'm using a gridpanel which uses a store to populate the template-checkboxes in each column.

    It seems that when I check some boxes, and do the following:

    PHP Code:
    var grid myGridPanel.getSelectionModel();
    grid.setSelectionMode('MULTI');
    grid.selectAll();       
    var 
    records grid.getSelection(); 
    It's returning store values and not the up-to-date grid.

    Thoughts?

  2. #2
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    1,099
    Answers
    113
    Vote Rating
    100
      0  

    Default

    the data is always only in the store. the grid just provides a view for the store data. its not clear to me what is not working and what you want to do. Could you explain it a little more please?

  3. #3
    Sencha User
    Join Date
    Oct 2012
    Posts
    2
    Vote Rating
    0
      0  

    Default

    I wrongly assumed that a grid object would let me get at grid data. My intention was to let the user configure the checkboxes in the grid as desired, and make only one call to save/update the store.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •