java - smartgwt - DynamicForm relative column width -


If I am creating a dynamic form shown below the dynamiform formiits, then 2 rows are placed. I expected that they would be in a row, the place should be distributed in the form of crossing: 20 pixels for the first column, 250 for the second and the rest for the third.

  Last DynamicForm df = new DynamicForm (); Form form [] fi = new form entity [3]; // Filling up the list with a checkbox etam, a text itam and a selectItem df.setColWidths ("20", "250", "*"); df.setNumCols (3); Df.setFields (Internet);   

The result looks like this:

results screenshot

I have all the form images in a row.

Actually the title of the form item also takes a column. If you want to show the title too, it will double the number of columns.

See for more information.


As you comment:

  // Fill the list with a checkbox etam, a text itam and a sitemap?   

Try this:

  last DynamicForm df = new DynamicForm (); // format [] fi = new form [3]; // a checkbox etam, a text itam and a selectItem checkboxIITIM CI = fill the list with the new checkbox (); Ci.setShowTitle (wrong); ci.setTitle (""); TextItium TI = New Textile (); ti.setShowTitle (wrong); Select = new selection (); Si.setShowTitle (wrong); Si.setValues ​​("PDF"); df.setItems (ci, ti, c); Df.setColWidths ("20", "250", "*"); Df.setNumCols (3); // df.setFields (fi); . Connecting RootPanel.get () (DF);   

Snapshot:

Enter image details here


According to your snapshot:

Try this one

  last DynamicForm df = new DynamicForm (); // format [] fi = new form [3]; CheckboxIITIM CI = new checkboxime (); ci.setShowTitle (wrong); Ci.setTitle (""); Select = new selection (); Si.setTitle ("language"); Si.setValues ​​("PDF"); Df.setItems (CI, C); df.setColWidths ("20", "250", "*"); Df.setNumCols (3); // df.setFields (fi); . Connecting RootPanel.get () (DF);   

Snapshot:

Enter image details here

Comments

Post a Comment

Popular posts from this blog

jasper reports - How to center align barcode using jasperreports and barcode4j -

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -