How to disable legend items clicks?

  1. #1

    How to disable legend items clicks?

    I have tried following code to disable show/hide line series functionality on click of legend item:

    Ext.each(App.container1.down('chart').legend.items, function (item) {
                item.un("mousedown", item.events.mousedown.listeners[0].fn);
            })
    But its not working...Line series can still be shown/hidden by clicking on Legend Item.

    Any other work around?
    Last edited by Daniil; Mar 11, 2014 at 2:46 PM. Reason: Please use [CODE] tags
  2. #2
    Can anyone help me on this?

    Quote Originally Posted by Pradip View Post
    I have tried following code to disable show/hide line series functionality on click of legend item:

    Ext.each(App.container1.down('chart').legend.items , function (item) {
    item.un("mousedown", item.events.mousedown.listeners[0].fn);
    })

    But its not working...Line series can still be shown/hidden by clicking on Legend Item.

    Any other work around?
  3. #3
  4. #4
    Thanks Daniil!! It worked like a charm.

Similar Threads

  1. [CLOSED] Disable overflow for some ToolBar's items
    By RCN in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 30, 2013, 2:22 PM
  2. [CLOSED] Items in comboBox should be loaded when user clicks
    By Tarun_Chand in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 26, 2013, 11:48 AM
  3. Disable some Combobox items
    By equiman in forum 1.x Help
    Replies: 6
    Last Post: Nov 01, 2012, 9:36 PM
  4. Disable form Items
    By Kipetcoff in forum 1.x Help
    Replies: 1
    Last Post: Mar 26, 2012, 6:16 PM
  5. Disable all Items in Toolbar
    By real_unreal in forum 1.x Help
    Replies: 1
    Last Post: Feb 05, 2010, 5:45 PM

Posting Permissions