Announcement

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

  • 12.0p ListGrid setAutoChildProperties with ListGridField as 2nd parameter missing

    Hi Isomorphic,

    we want to show a print preview ListGrid with many narrow and one wide column. In order to save space, we do it like in the online showcase with a detail field.
    As we want to print this and don't need interactivity, we want to hide the very left expansion field like you describe in the docs with ListGrid.getExpansionField() via AutoChild and a template field with setHidden(true).

    But there is no overload for (Canvas).setAutoChildProperties() taking a ListGridField as 2nd parameter. Is it missing or is the way to achieve this different (perhaps with a more specific setter like ListGrid.setRemoveFieldProperties()? But this would also be missing IMHO).

    Best regards
    Blama

  • #2
    We've added a new ListGrid.setAutoChildProperties() API that allows a ListGridField autochild to be configured. This has been ported back to SGWT 5.1p and newer releases, and should be in the builds dated 2019-08-14 and beyond.

    Comment


    • #3
      Hi Isomorphic,

      thanks. With this we should be able to configure the expansionField autoChild (fyi: there is a typo in "overrfide" in the new method).
      Out of interest: For the rowNumberField-autoChild I could use the new ListGrid.setAutoChildProperties() or setRowNumberFieldProperties(). Is there any difference?

      Best regards
      Blama

      Comment


      • #4
        When configuring the rowNumberField, those APIs shouldn't be different in any meaingful way. The more specific method is just a convenience (that has been there quite a while) for code that's targeting that specific autochild. It's similar to how you have Canvas.setAutoChildProperties() and RecordEditor.setActionButtonProperties() as two different ways of configuring the action button autochild of a RecordEditor.

        Comment

        Working...
        X