Results 1 to 2 of 2

Thread: How can i forbid chart's legenditem click event.

  1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    15
    Vote Rating
    0
      0  

    Default How can i forbid chart's legenditem click event.

    Ext.each(Ext.getCmp('barChart').legend.items, function(item) {
    item.un('mousedown', item.events.mousedown.listeners[0].fn);
    });

    It worked well at first but I reload the data it became invalid. Any idea?

    Thank you.

  2. #2
    Sencha User Daniil's Avatar
    Join Date
    Jun 2010
    Location
    Saint-Petersburg, Russia
    Posts
    1,018
    Answers
    1
    Vote Rating
    125
      0  

    Default

    Do you re-execute that code after reloading the data?
    Object.NET
    Frameworks and Tools for .NET Developers
    --------------------------------------------------
    Ext.NET - Ext JS for ASP.NET - Examples | Twitter
    Bridge.NET - Write C#. Run JavaScript! - Live | Twitter
    --------------------------------------------------

Posting Permissions

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