1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    74
    Vote Rating
    2
    url is on a distinguished road

      0  

    Default Unanswered: Load the store of combobox while intializing the window

    Unanswered: Load the store of combobox while intializing the window


    Hi

    I've a window. In that window i've one combobox witha store. I want to mask the window until the store completes loading data. This i can achieve by writing this.setLoading(true) in store before load and this.setLoading(false) in load.

    But When i'm using above approach the mask is displaying after clikcing on the combo trigger. That means store is getting loading after clicking on the trigger. Instead of that i want to load the store while intializing the window.
    How can i achieve this?

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Answers
    124
    Vote Rating
    85
    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 use "autoLoad: true" config of store class

    use "autoLoad: true" config of store class


    Hi Url,

    Give autoLoad: true config to your store class.

    http://docs.sencha.com/ext-js/4-1/#!...e-cfg-autoLoad
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    74
    Vote Rating
    2
    url is on a distinguished road

      0  

    Default @sword

    @sword


    Hi Sword
    Thanx alot for your response.
    It's working fine.

Thread Participants: 1

Tags for this Thread