Multiple input control in a DynamicForm row

Hello,

I need to accomplish the following form row layout with SmartGWT:

My problem is that a DynamicForm only accepts one input control per row. I considered creating the whole form without using a DynamicForm. But I haven’t found a suitable layout for this approach yet (is there something like a TableLayout or a GridLayout in SmartGWT)? I could reach my goal by using a lot of HorizontalLayout rows but this would be ugly and cumbersome in my eyes.

Another question, is it possible to add a radio button as an independent item? RadioGroupItems are hard to customize since they are rendered as a whole.

Thank you very much in advance.

Have you tried setnumcols method for DynamicForm ? Default value is 2 and TextItem need at least 2 column (one for title and one for control itself). You should achieve your goal by seting number of columns to 4 to get 2 input control in one row

Regards

Hello lazinskip,

thanks for your quick reply. If I set the number of cols to 4, then what about the other rows? They only require 2 columns.

Use rowSpan or colSpan like building a standard HTML table to merge cells for display. In other cases use a SpacerItem or RowSpacerItem to add separation or fill empty cells you don’t want merged.

Hi davidj6

Thanks - I did not know about those component (very useful)