View Full Version : Animal's LinkButton and GridColumn Rendering?

14 Jun 2010, 12:24 PM
I'm trying to create a LinkButton (ux extension of boxcomponent w/ some events) inside of a GridPanel column. The problem is that the renderer wants a string returned, not a component.

Is this sort of thing possible to do? I basically want the html formatted text of LinkButton, with the click event built in when the user clicks so that I have access to handler fn, and so that the function isn't attached to the window object.

I've previously tried hacking this w/ <a href="#"> and handling the column's cell-click event, but it's a mess, and doesn't behave properly in all circumstances.

Ext.ux.LinkButton works great elsewhere in the app, but I can't figure out how to render it into the column using the renderer function.


14 Jun 2010, 1:51 PM
No, you can't put widgets in there. You can use the same template to create some similar HTML>