Announcement

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

    Any way to have all rows in a ListGrid remain in edit mode

    I need to display a small list of records for editing in a ListGrid. I need all rows to be in edit mode when the grid is displayed and to remain in edit mode. Is there any way to do that?

    I see the setModalEditing(false) api, but that only keeps the record that is currently being edited in edit mode when the user clicks away. Is there some way to keep all records in edit mode?

    #2
    It's listGrid.alwaysShowEditors:true, but note, this very special mode necessary makes APIs behave differently from normal editing. For low data volume scenarios, it often makes sense to use something like a VStack of DynamicForms instead.

    Comment


      #3
      Thanks for the quick reply, and for the tip about using a VStack of forms. That looks like it will work better for my purposes, except for the tabbing order. I have the VStack of DynamicForms as the Canvas of a CanvasItem. Two problems with tabbing. Tabbing seems to skip over the CanvasItem entirely. If I then using the mouse to click into one of the forms in the VStack, tabbing out of the last entry field in one form does not advance to the next form.

      Is there something I need to do to have the CanvasItem and it's VStack of forms participate in the tab sequence?

      Comment


        #4
        Short answer - you shouldn't have to do anything to explicitly get the tab order to work - if it doesn't this is probably a bug.

        There is some tricky tab-index management going on once you nest DynamicForms using CanvasItems.
        We had some known issues in this area (many of which are recently resolved, at least in the 3.1d branch). It's possible that some of these fixes didn't make it into 3.0p and its effecting your particular use case.
        If you can get the desired behavior without CanvasItems that may be simpler (You can always use a ValuesManager to assemble values from multiple DynamicForm instances). However, this may not be practical - as always - if you can show us a test case we'll take a look at it!]
        --
        Oh - a quick update - your CanvasItems need to be marked as canFocus true. If you haven't already applied that setting that may be your problem.
        Last edited by Isomorphic; 28 Mar 2012, 16:31.

        Comment

        Working...
        X