Results 1 to 2 of 2

Thread: Extjs 2.X Menu

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Aug 2010
    Posts
    2
    Vote Rating
    0
      0  

    Default Extjs 2.X Menu

    We need to implement 2 level menu, the problems we are facing in implementation are as below:
    1. We have to disable 1st level menu click. How to disable it? Every item in 1st level has child items. (Currently on clicking on 1st level menu item it hides 1st level of menu items and the it's child items does not disappears)

    2. We have long list of items so we have added scroll to 2nd level child items. But when we click on scroll bar to scroll up/down, the parent(1st level) menu disappears.. How to solve this issue?

  2. #2
    Sencha User sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,335
    Vote Rating
    90
      0  

    Default

    Hi,

    You can change your menu items' 'closable' value on beforehide.
    Code:
    menu: {
                        closable: true
                        , listeners: {
                            scope: this
                            , beforehide: function () {
                                //return with your menu items' closable values.
                            }
                        }
                        , items: [...]
    }
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

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
  •