Announcement

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

    Use custom canvas inside menu

    Hello,

    I'm using SmartClient_v91p_2014-05-04_PowerEdition and I want to add custom canvas to menu (see attached pictures).

    1. I want to add a TreeGrid without any menu data
    2. I want to add a DynamicForm under some menu data

    How can I do that?

    Thank you
    Attached Files

    #2
    While you can technically do this using the recordComponents feature of Menu's superclass ListGrid plus setting Menu.autoDismiss to false, we wouldn't advise building this UI. It's unfamiliar for end users to have a tree interface embedded within a menu, so this is going to be extra effort for a less usable result.

    Comment


      #3
      I can drop the first thing but I really need a solution for the second thing. Isn't menu extends Layout? why can't I just add member to it?

      Comment


        #4
        Menu does extend Layout by way of ListGrid. The correct way of adding additional components to a Menu or ListGrid's Layout is to use ListGrid.gridComponents, not addMember(). This is a viable alternative to using recordComponents if the TreeGrid you want to add always appears at the end of the Menu.

        Comment


          #5
          OK I will try that. Thank you.

          Comment

          Working...
          X