1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    64
    Answers
    2
    Vote Rating
    0
    punith.mailme is on a distinguished road

      0  

    Exclamation Answered: Data add from checkbox model grid to simple grid.

    Answered: Data add from checkbox model grid to simple grid.


    Hi All,

    'searchPanel grid[action=addtrimsSelect]': {
    select: function(model, record, index) {
    this.getSelectedTrimsStore().add(record);
    Ext.getCmp('selectedBodyTrimPanel').getView().refresh();
    },

    deselect: function(model, record, index) {
    this.getSelectedTrimsStore().remove(record);
    Ext.getCmp('selectedBodyTrimPanel').getView().refresh();
    }

    i have a scenario where i have a checkboxmodel grid on left and a simple grid model on the right.
    as i check the row in the checkboxmodel i have to add the selected row to the right grid.

    Both of the grid uses the same model.
    Ext.define('com.gm.vl.model.YMMModel', {
    extend: 'Ext.data.Model',
    fields: ['label','value']
    });


    but as above code as i add the data it is getting added in the store. but is not visible on the screen.
    i also did the refresh of grid view as above.


    kindly help

    Thanks
    Punith

  2. So you need to take a record from one store and add it to another?

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,754
    Answers
    3462
    Vote Rating
    827
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    So you need to take a record from one store and add it to another?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Sencha User
    Join Date
    Sep 2011
    Posts
    64
    Answers
    2
    Vote Rating
    0
    punith.mailme is on a distinguished road

      0  

    Default


    I did same as above with removing the '100%' width of the coulmn in grid. surprisngly it worked.
    not sure y i need to mention it in px and Not as '100%'

    neways Thanks

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi