Hello,
I have a TreeGrid. The leaves in the TreeGrid column should display a certain image next to it (not in an extra column), depending on an enum value. What is the best way to achieve this?
I have read about DataSourceEnumField and that you can map images to enum values. But I think I cannot use this approach since I don't want a seperate column for the image. The image should be displayed next to the node title, just like so: http://www.smartclient.com/smartgwt/...nding_ondemand . So far, I can only achieve this by setting the "icon" attribute of a list grid record.
I could extend ListGridRecord and add an extra enum field, then query this field in a CellFormatter and set the icon attribute accordingly. But maybe there is an easier approach?
I have a TreeGrid. The leaves in the TreeGrid column should display a certain image next to it (not in an extra column), depending on an enum value. What is the best way to achieve this?
I have read about DataSourceEnumField and that you can map images to enum values. But I think I cannot use this approach since I don't want a seperate column for the image. The image should be displayed next to the node title, just like so: http://www.smartclient.com/smartgwt/...nding_ondemand . So far, I can only achieve this by setting the "icon" attribute of a list grid record.
I could extend ListGridRecord and add an extra enum field, then query this field in a CellFormatter and set the icon attribute accordingly. But maybe there is an easier approach?
Comment