Announcement

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

    Removal of DS field in DetailViewer like in other databound components

    Hi Isomorphic,

    is there a way of hiding a field within a databound com.smartgwt.client.widgets.viewer.DetailViewer component?

    There exist com.smartgwt.client.widgets.form.DynamicForm.hideItem(itemName)
    and com.smartgwt.client.widgets.grid.ListGrid.hideField(fieldName) methods, but not such one for the DetailViewer.

    What I'm looking for is something like
    myDetailViewer.setFields() //show all fields from the DS
    myDetailViewer.removeField (String nameOfFieldToHide)

    Is that one missing or did I not notice it?

    Thanks,
    Blama

    #2
    You can do it via setFields() with a field marked hidden.

    Comment

    Working...
    X