1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    55
    Vote Rating
    0
    varunjyoti is on a distinguished road

      0  

    Default Tab panel rendering

    Tab panel rendering


    I have a tabpanel with two tabs. There is a grid in second tab. I am trying to select some rows in this grid on page load. But no rows are getting selected. That is because the contents of second tab are not rendered yet. If i try to select the rows after clicking the second tab, it works fine. Please suggest a solution. I want it to happen on page load only.

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,332
    Vote Rating
    83
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  

    Default


    Hi!

    You can attach a load event on your grid's store and calls a method in that to select rows of your choice.

    For example:-

    Code:
    grid.mon(grid.store, 'load', grid.onGridStoreLoad, grid);
    Code:
    onGridStoreLoad: function () {        
                if (grid.store.getCount() > 0) {
                    //you can do selections here , for example,               
                       grid.selModel.selectFirstRow();
                }
                else {
                    alert('No Records in Grid');
                }
            }
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar