Announcement

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

    hide FormItem in DynamicForm

    Hi there

    I used a DynamicForm to create a table, ex. 2 rows and 2 columns, every cell is a FormItem.

    When I hide one FormItem, the following FormItems in the DynamicForm will automatically move forward to take the position of the hidden one.

    My question is, in a DynamicForm, how can I keep all the FormItems in their original postion when I hide some of them.

    Thanks.

    #2
    The only way is to replace the formitem you hide with a spaceritem.

    Comment


      #3
      Thank you very much!

      Are there any simple ways to replace formitems in a DynamicForm?

      Thanks.

      Comment


        #4
        Not really, in fact pretty difficult the whole concept your talking about. I know I've faced it before too. Of course breaking the form into multple forms could be a solution depending on the design (but of course presents other issue with databound and what not).

        Could tinker with padding/cell spans when hiding, but yeah no easy solution to this at all. Can't replace formitems without a new form unfortunately. Would certainly be nice the whole addMember()/removeMember() idea, but I'm sure not trivial to do.

        Comment

        Working...
        X