Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    MenuItem onClick

    SmartClient Version: v9.1p_2014-08-28/Pro Deployment (built 2014-08-28)

    Hello,

    I have an IconMenuButton, using a Menu with multiple MenuItem's (including sub-menus) and I would like to allow the client to click/check multiple MenuItem's without the menu closing after each click/check.

    Essentially, I am looking for the same behaviour the List Grid provides when using the "Columns" menu to select columns from the header context menu.

    Can you please recommend the best practice for this please?

    Thanks.

    #2
    There's an attribute 'autoDismiss' which you can set to false to disable the auto-close behavior on item selection.

    Comment


      #3
      Thank you.

      Is it possible to do something like if the user clicks the menu item, it does not auto dismiss, but if they hold Ctrl key down while clicking it will not auto dismiss the menu?

      Thanks

      Comment


        #4
        The easiest way to handle this would be to have autoDismiss be false and then explicitly call hideAllMenus() from the items in the cases where you *do* want the menus to be dismissed.

        Comment


          #5
          Thanks for the information.

          Comment

          Working...
          X