Announcement

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

    Set ListGridField To Use WIth DataSource

    Is it possible to set the ListGridField class to use for a specific field in a ds.xml?

    I have a ListGridField class that I've created that has a cellFormatter and editValueFormatter. I'd like to use this class for specific fields coming from a ds.xml. Is there a way to tell a list grid to use this class for a specific field? I know I can set the fields explicitly with ListGrid.setFields(), but I was wondering if there was a way to set a specific class to use for a specific field.

    Thanks

    #2
    You can reuse formatting and other logic across not just ListGrids but other databound components such as DynamicForm via the SimpleType system.

    There’s no way to do it just via ListGridField as that would just be a weaker mechanism.

    Comment

    Working...
    X