Results 1 to 4 of 4

Thread: Controller cannot see staterestore or beforestaterestore of combobox

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Ext JS Premium Member
    Join Date
    Mar 2010
    Vote Rating

    Default Controller cannot see staterestore or beforestaterestore of combobox

    REQUIRED INFORMATIONExt version tested:
    • Ext 4.0.7
    Browser versions tested against:
    • Firefox
    • When using a combobox in a stateful manner, if you have it set and restore stateful events a parent controller cannot see the staterestore or beforestaterestore events on its standard 'init' binding process. This is a problem when you want to see the combobox's event and use it for a separate initialization process (for example if I wanted to have a combobox with a 'refresh rate' for a data store, I'd want the controller to re-enable that refresh rate on page reload by listening to the combobox's staterestore event and set the refresh rate to that value).
    • If you add a listener directly to the combobox instead of the controller, it DOES fire the staterestore event and you can see the data correctly from there, it just is not bubbling up to the controller to see.
    Steps to reproduce the problem:
    • Create a combobox, enable stateful saving and restoring of the combobox.
    • Create a controller that is set to listen to the combobox's staterestore or beforestaterestore and call a function that logs the event.
    • If you save it and refresh the page, the controller will not fire the calling function because it is not seeing the staterestore or beforestaterestore of the combobox.
    The result that was expected:
    • Controller to see the staterestore event and fire the supporting function
    The result that occurs instead:
    • No function is fired
    Possible fix:
    • Couldn't find any way around the problem
    Operating System:
    • Windows 7

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    Have you tried this in 4.1.0 RC1?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2

    Think my support is good? Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services

    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.

  3. #3
    Ext JS Premium Member
    Join Date
    Jul 2010
    Vote Rating


    This issue still exists in 4.1.2. It shouldn't be considered as closed.

  4. #4
    Sencha User
    Join Date
    Sep 2009
    Vote Rating

    Default Still an issue in 4.1.1gpl

    I agree I'm seeing the same issue also.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts