1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    3
    Vote Rating
    0
    mockeryjones is on a distinguished road

      0  

    Default Unanswered: Use of Sencha Touch Charts Is Disabling Buttons In Other Toolbars

    Unanswered: Use of Sencha Touch Charts Is Disabling Buttons In Other Toolbars


    Greetings all,

    I am using a sencha touch line chart in a proof of concept project and am running into an issue I could really use some help understanding. The scenario is this.

    I have a panel with a tool bar docked at the top. On this panel are a number of buttons each with listeners configured though a controller object. When I add a chart to a card layout panel component nested within the top level panel, some of the buttons on the tool bar of the top level panel stop responding to events defined in the controller object. I am having a great deal of difficulty figuring out why this is is happening and could use any insight into why these buttons unrelated to the chart are somehow being disconnected from thier listeners.

    Jones

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,327
    Answers
    3540
    Vote Rating
    850
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Some of the examples have buttons in toolbars that work fine.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    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
    Sencha User
    Join Date
    May 2012
    Posts
    3
    Vote Rating
    0
    mockeryjones is on a distinguished road

      0  

    Default


    Thanks for the reply.

    I eventually figured this out. While doing so I noticed something odd.

    First, this was definitely user error. There was some extraneous leading white space characters being injected into the id's of the refs in my controller. What is weird is that the Observer that works without the charts being active was much more forgiving and showed no ill effects from the leading white space characters in the ref ids. However the observer that works when the charts are active does not have such a forgiving implementation.

    Now I just need to figure out how to work around the severe memory issues I am seeing in the charts. It would be really great if the charts could be dynamically updated without adding all new surfaces. Redrawing existing surfaces on configuration change might be a good first step as it may still be a little slow it will at least not be introducing a whole new set of memory greedy objects each time I would like to display a new chart configuration.

    again thanks for taking the time to reply.

    Jones

Thread Participants: 1