Hello:
I’m migrating from GWT-Ext to SmartGWT and am looking for a way to add an icon to the header of a ListGrid. GWT-Ext made that dead simple and I’m hoping that there’s a way of doing it with this toolkit.
thanks,
Chris
Hello:
I’m migrating from GWT-Ext to SmartGWT and am looking for a way to add an icon to the header of a ListGrid. GWT-Ext made that dead simple and I’m hoping that there’s a way of doing it with this toolkit.
thanks,
Chris
ListGridField.setIcon()
Thanks but I’m using version 1.1 of the code and there isn’t a setIcon method for the ListGrid.
Is that something available in more recent code?
I see this available for the individual table columns but I’m trying to set an icon for the header of the entire grid. Similar to what you can do for the Window classes.
thanks!
ListGridField, not ListGrid (here).
If you mean a separate header above the headers for individual columns, put the ListGrid into a SectionStack as the only section, and setIcon on the SectionStackIcon. This creates an expand/collapse, drag resizable (with multiple sections) container to which you can also attach custom controls per-section.
Yeah but that’s the problem. I don’t want the SectionStack because I don’t want the collapsible button.
There’s no other way to get the icon to show up?
thanks.
Chris
Sections can be set as not collapsible, then the icon doesn’t show.
You may be starting small for now, but consider how much flexibility the collapsible stacks give the users in this sample.
Icon is not displayed in the listgrid column header during click handler
Hi,
Icon is not displayed in the listgrid column header during click handler
Can you please assist me to solve this issue
We are using SmartGWT version : 4.0
Thanks in advance
Vasnth
Not with the information you’ve provided - it’s not clear what you mean.
We’ll need a much more detailed idea of what you’re trying to do, versus what is actually happening, or to see code that shows the issue, in order to help.