1. #1
    Sencha User
    Join Date
    Jul 2013
    Location
    Bulgaria
    Posts
    1
    Vote Rating
    0
    dimitrovt is on a distinguished road

      0  

    Default Refresh component in 'General Tab' of task editor.

    Refresh component in 'General Tab' of task editor.


    Hi to all,

    I'm trying to add combo to the General Tab of the task editor. When a task is open(for edit), I send ajax request and based on the results I generate a store for the combo. But in general tab the combo is empty.

    When I opened again, the results are listed in the combo.

    The Ajax request is send on event:

    Code:
         
                  Ext.create('Gnt.plugin.TaskEditor', {
                        
                        // here i init and add the combo
                        taskFormClass : this.taskTypeLoader.typeIdentificator(),
                        listeners   : {
                             loadtask : function (taskeditor, task){
                                 // here, I send the ajax and fill the store
                                 this.gantt.taskTypeLoader.populateTypeStore(task);
                                // need here to refresh the combo
                             }
                        }
                    })

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    4,913
    Vote Rating
    179
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      0  

    Default


    Are you working with one of the Bryntum products?
    http://www.bryntum.com/products/gantt/examples/
    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our recruiting manager: sheryl@sencha.com

    C
    heck out all of the 2013 SenchaCon presentations here:
    http://www.sencha.com/blog/senchacon...now-available/

Thread Participants: 1

Tags for this Thread