PDA

View Full Version : [CLOSED] ToolTip migration to 2.1



sisa
Jan 21, 2013, 1:19 PM
Hi,

I want to migrate my tooltip to ext.net 2.1
With version 1.5 I had the following code:



<ext:GridPanel ID="GridPanelPermit" runat="server" Text="<%$ Resources:CUSTRocheImport, Permit %>"
Layout="Fitlayout" MaskDisabled="True" StripeRows="True" TrackMouseOver="True" Icon="Lock">
<Bin>
<ext:ToolTip ID="RowTip" runat="server" Target="={#{GridPanelPermit}.getView().mainBody}"
MaxWidth="1000" MaxHeight="1000" Delegate=".x-grid3-cell" TrackMouse="true" ShowDelay="1"
Anchor="bottom" NoCache="true" Closable="true" Icon="PageWhite">
<Listeners>
<Show Handler="showToolTip(#{RowTip} ,#{GridPanelPermit}, #{PermitGridPanelStore}, this.body);" />
</Listeners>
</ext:ToolTip>
</Bin>


and now the handler is not called. What I'm doing wrong.

mfg
Elke

Daniil
Jan 21, 2013, 2:41 PM
Hi Peter,

At least, you have to replace

Delegate=".x-grid3-cell"
with

Delegate=".x-grid-cell"
and

Target="={#{GridPanelPermit}.getView().mainBody}"
with

Target="={#{GridPanelPermit}.getView().el}"

See also
http://examples2.ext.net/#/Miscellaneous/ToolTips/GridPanel_Cell_Tooltip/