1. #1
    Sencha User
    Join Date
    Sep 2010
    Location
    India
    Posts
    40
    Answers
    2
    Vote Rating
    0
    pratik016 is on a distinguished road

      0  

    Default Answered: ExtJS4 Calender issue in MVC

    Answered: ExtJS4 Calender issue in MVC


    Hello All,

    I have event calender of ExtJS4 MVC. I am loading all events from store load. All is working fine. But once I close window and reopen it, and try to load calender from store it throws me error. I am really helpless on it.
    Please help me if anyone have some ideas.

    1. My calender is in window.
    2. I load event from
    Code:
     Ext.getCmp('app-calendar').eventStore.load();
    3. After close and reopen window, I tried to load calander it throws me error

    Code:
    TypeError: el is null

    May be because of I remove component and reload this.
    Code:
     {
    			        xtype: 'calendarpanel',
    			        flex: 1,
    			        id: 'app-calendar',
    			        action: 'eventClicked',
    			        height: parseInt(Ext.getBody().getViewSize().height * (0.80)),
    			        eventStore: Ext.getStore('path.Store'),
    			        // eventStore: me.eventStore,
    			        //  calendarStore: this.calendarStore,
    			        border: false
    
    
    			    }
    Pls let me know if any query on question

  2. Hello Scott,

    I have also did for closeAction change to hide. But it seems like window close will destroy all events.

    But fortunately the problem is solved and I am surprising the way how it is solved.

    Might be something wrong in extend the proxy from MemoryEventStore..

    I have store for loading events in calender which extended from "Ext.calendar.data.MemoryEventStore" class as it should be. But one more proxy provided in this class. Now I have removed proxy from my own store and use the default proxy providing MemoryEventStore class. And problem is solved!!!!

    Thanks for support.

    Pratik

  3. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,927
    Answers
    656
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Remove the hard 'id' and use itemId instead with Ext.ComponentQuery

    Scott.

  4. #3
    Sencha User
    Join Date
    Sep 2010
    Location
    India
    Posts
    40
    Answers
    2
    Vote Rating
    0
    pratik016 is on a distinguished road

      0  

    Default Not worked

    Not worked


    Hello Scott,

    thanks for replying. I have removed the id and got store using component query and load store. Still issue is persistence. I don't know wht happening inside.

    First time when I try to load event from store it works fine. But window close and reopen it not loads the events.

    I think closing window may lost something of the calender.



  5. #4
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,927
    Answers
    656
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Are you closing (destroying), or are you hiding the window?
    closeAction : 'hide',

    You will need to provide a small test case if this does not help.

  6. #5
    Sencha User
    Join Date
    Sep 2010
    Location
    India
    Posts
    40
    Answers
    2
    Vote Rating
    0
    pratik016 is on a distinguished road

      0  

    Default


    Hello Scott,

    I have also did for closeAction change to hide. But it seems like window close will destroy all events.

    But fortunately the problem is solved and I am surprising the way how it is solved.

    Might be something wrong in extend the proxy from MemoryEventStore..

    I have store for loading events in calender which extended from "Ext.calendar.data.MemoryEventStore" class as it should be. But one more proxy provided in this class. Now I have removed proxy from my own store and use the default proxy providing MemoryEventStore class. And problem is solved!!!!

    Thanks for support.

    Pratik

Thread Participants: 1