I have a SmartGWT grid, where I want to display some data from JBoss-Server and it's grouped by one textfield that I fetch from JSON.
So, but I want this textfield only in the header of each group.
When I do .hideField on this field, then i'm loosing the group.
grid.hideField("pool");
But when i hide it over the context-menue of the grid header, the column remains.
Any idea how to do this?
Roman.
The clean way is to hide the
ListGridField
like this:Note that if you use a
DataSourceField
, you may need to declare hard-codedListGridField
definitionsThere is simple and clean workaround. Just set width parameter of the filed to '0'. Additionally clear title parameter if you have one (but this is only necessary in some sophisticated ListGrid use cases).
I've actually had the most success hiding the field using the DataSourceField as opposed to the grid itself.
You've already posted here and didn't answer to the people who oriented you toward the setHidden methode of the ListGridField.