Announcement

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

    How to add two combo box item in HLayout??

    Hi,

    I want to add two combo box item into a Section in a single row. I think, HLayout will be a better option for adding two components in a single row.

    But HLayout.addMember() method is not accepting combo box item or text item. So can anyone let me know, how to do this??

    Thanks.

    #2
    Put a DynamicForm into the section, not an HLayout.

    Comment


      #3
      Originally posted by davidj6
      Put a DynamicForm into the section, not an HLayout.
      Hi David,

      If i try to add components in dynamic form, its using vertical alignment by default. Exactly the two combo box items are rendering one below one.

      Actually i want these two combo box items in a single row, adjacent. How to achieve that??

      Thanks.

      Comment


        #4
        Originally posted by kodanhunt
        Hi David,

        If i try to add components in dynamic form, its using vertical alignment by default. Exactly the two combo box items are rendering one below one.

        Actually i want these two combo box items in a single row, adjacent. How to achieve that??

        Thanks.
        Also, if i try to use

        Code:
        dynamicForm.setItemLayout(FormLayoutType.ABSOLUTE);
        then the label of these combo box items are not available. I want both label and the components.

        Comment


          #5
          DynamicForm.setNumCols() to have more then one item per row. Remember title + formitem = 2 columns. So two comboboxes with titles = 4 columns.

          Comment


            #6
            Originally posted by svjard
            DynamicForm.setNumCols() to have more then one item per row. Remember title + formitem = 2 columns. So two comboboxes with titles = 4 columns.
            Thanks man.. It works now..

            Comment

            Working...
            X