Jan 16, 2012, 11:10 AM
[CLOSED] Grid Tooltip with Renderer
Hi,
I've got a row tooltip no problem following the example but I'd like to pull the active GridView text for a particular row cell, as it has a Renderer in place - I need the rendered value.
ie: I hover over a row, and one of my columns has a renderer on it with a text value which I'd like to show in my tooltip.
My tooltip code:
This uses the stores though so I'm getting the ID rather than the username showing up for my 'ModifiedById'. I'd rather not have to call the renderer manually again, as the grid already shows the name in the cell.
Cheers,
Peter
I've got a row tooltip no problem following the example but I'd like to pull the active GridView text for a particular row cell, as it has a Renderer in place - I need the rendered value.
ie: I hover over a row, and one of my columns has a renderer on it with a text value which I'd like to show in my tooltip.
My tooltip code:
<ToolTips>
<ext:ToolTip ID="RowTip" runat="server" Target="={#{listActionEventLog}.getView().mainBody}"
Delegate=".x-grid3-row" TrackMouse="true">
<Listeners>
<Show Handler="this.body.dom.innerHTML = setupEventTooltip(this.triggerElement);" />
</Listeners>
</ext:ToolTip>
</ToolTips>
var setupEventTooltip = function (index) {
var rowIndex = listActionEventLog.view.findRowIndex(index);
var record = listActionEventLog.getStore().getAt(rowIndex);
return "<b>Changes by {0}</b><br />{1}".format(record.get("ModifiedById"), record.get("ChangeLog"));
};
This uses the stores though so I'm getting the ID rather than the username showing up for my 'ModifiedById'. I'd rather not have to call the renderer manually again, as the grid already shows the name in the cell.
Cheers,
Peter
Last edited by geoffrey.mcgill; Jan 18, 2012 at 7:38 AM.
Reason: [CLOSED]