PDA

View Full Version : Custom text for TreeGridCellRender



Pandaman
30 Jul 2009, 5:48 AM
I want the TreeGridCellRenderer to return custom HTML in its render function. This HTML is not necessarily set in the underlying model. I've tried extending the TreeGridCellRender and duplicating the same code for the body of render except for the text to be used, but I do not have access to all of the methods used. I could use the WidgetTreeGridCellRenderer to do this, but I would have to return a widget. I think this is too heavy weight for my needs. Is there an alternative to this?

sven
30 Jul 2009, 5:51 AM
Moved this to the correct forum.

Jose Jeria
11 Jun 2010, 6:40 AM
@Pandaman, did you find any good solution to this? I have the same issue where I cannot extend TreeGridCellRenderer due to not having access to certain methods.

sven
11 Jun 2010, 6:44 AM
If you need access to methods you dont have access to, you could extend TreeGrid and make the methods public, or you could use JSNI to access them

Jose Jeria
11 Jun 2010, 6:47 AM
Thanks, I will try that out