Hybrid View

  1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    2
    Vote Rating
    0
    gpbm is on a distinguished road

      0  

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

    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
    Vote Rating
    96
    Answers
    113
    Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light

      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
    gpbm is on a distinguished road

      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.

Thread Participants: 1