Announcement

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

    List in DynamicForm?

    Hello,
    Is there an Item that displays a List in DynamicForms?
    (or I should create it using CanvasItem?)
    SelectItem displays only one row, but I would like to see more rows simultaneously.

    Cheers.

    Yorgos.

    #2
    actually the select item can work like this: http://www.smartclient.com/smartgwt/showcase/#dropdown_grid_combobox_category

    But if you really want an ListGrid, yes theway to do it is inside a CanvasItem. I am using it this way without problems.

    Comment


      #3
      I am trying to use a ListGrid as Canvas for a CanvasItem within a DynamicForm which is a member of a ValuesManager.

      The ValuesManager has a DataSource set on it.

      The DataSource has a field for each ListGrid such that the field value is a JSON Array where each element of the JSON Array corresponds to a record for the ListGrid.

      Now I am unsure about the following...

      How do I wire the ListGrid so that it gets populated with the corresponding field (whose value is a JSON Array) in my DataSource.

      How do I make sure that if the ListGrid records are changed that the DynamicForm.valuesHaveChanged() returns true.

      How do I make sure that when I call DYnamicForm.saveData() that the data from the ListGrid is also saved.

      Thanks for any advice on this.

      Comment


        #4
        I'm facing the same problem right now. Can anyone post some sample code please?

        Comment

        Working...
        X