Announcement

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

    ListGrid.setFields()

    Hi there, I'm looking at the docs for ListGrid.setFields() at http://www.smartclient.com/docs/6.5/a/b/c/go.html#method..ListGrid.setFields

    We want to add a new field to the existing fields array for a ListGrid. Do we achieve this by passing in a newFields array? Does this maintain the old list of fields? Or, do I need to add my new field to the existing fields array and then pass in the whole array as a newFields array? Or, is there another API I'm not seeing for adding fields? Same question applies for removing fields.

    #2
    Calling setFields() with a new Array or modified version of the original Array is the right way introduce entirely new fields. If you are able to define all the fields up front, an alternative is to use showField() and hideField() to later reveal or hide the fields.

    Comment

    Working...
    X