Hi folks,

I'm wondering, is there any way to add new row to a tableLayout at runtime? Of course, not just new row, but cells and textAreas. I woud like to create a dynamic panel, that populating at runtime from datadase.

Thanks in advance!

asked 24 Nov '15, 08:13

S7ilA's gravatar image

S7ilA
152
accept rate: 0%


Hi Szilard,

You can add rows and cells to a panel with tableLayout. Please see the API's addCell, addRow, removeCell etc... at this link . There are a bunch of API's in the api_panel package that might be of interest to you.

In Formspider, you cannot create components such as a textArea during runtime though. You can add, remove panels to/from other panels during run time. You cannot create panels during runtime, either.

This is not too much of a limitation though. There are only very few use cases that justify run time creation of components. Usually having a pre-designed panel to show up and disappear during runtime is more than good enough. Hopefully, your use case is not one of the edge cases where you must create UI Objects during run time. :-)

By the way, there is a webinar tonight at 20:00 Central European Time. The timing is better suited for the American audience this time, but if you have the time I highly recommend you to join. Here is the registration link.

Kind Regards,
Yalim

link

answered 24 Nov '15, 08:29

Yalim's gravatar image

Yalim ♦♦
2.8k5
accept rate: 21%

Thanks for answer! I try to find a workaround, with pre-designed panel.

(24 Nov '15, 09:01) S7ilA
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×3

Asked: 24 Nov '15, 08:13

Seen: 616 times

Last updated: 24 Nov '15, 09:01


© Copyright Gerger 2017