Jun 17, 2013, 3:09 PM
[CLOSED] Tooltip on CommandColumn
I have the following gridpanel:
How I can add a tooltip to each of the flags?
An example of code commandcolumn on the client side is:
The tooltip content I wish to add from the codebehind:
thanks!!
How I can add a tooltip to each of the flags?
An example of code commandcolumn on the client side is:
<ext:CommandColumn ID="CommandColumnFeb" runat="server" Width="40" Text="Feb" Hideable="false" Resizable="false" DataIndex="Feb">
<Commands>
<ext:GridCommand Icon="FlagGreen" CommandName="NotifNo" Hidden ="true" />
<ext:GridCommand Icon="FlagRed" CommandName="NotifYes" Hidden="true" />
<ext:GridCommand Icon="FlagYellow" CommandName="NotifYesA" Hidden="true" />
</Commands>
<PrepareToolbar Fn="prepareToolbarFeb" />
</ext:CommandColumn>
var prepareToolbarFeb = function (grid, toolbar, rowIndex, record) {
if (record.get("Feb") == 'Rojo') {
toolbar.items.getAt(0).hide();
toolbar.items.getAt(1).show();
toolbar.items.getAt(2).hide();
}
if (record.get("Feb") == 'Verde') {
toolbar.items.getAt(0).show();
toolbar.items.getAt(1).hide();
toolbar.items.getAt(2).hide();
}
if (record.get("Feb") == 'Amarillo') {
toolbar.items.getAt(0).hide();
toolbar.items.getAt(1).hide();
toolbar.items.getAt(2).show();
}
};
The tooltip content I wish to add from the codebehind:
Function CreaLed(Ub As Double, DMes As Integer, DEq As Integer, DEqM As Integer)
Dim valor As String = ""
If DMes > DEq Then valor = "Rojo"
If DMes <= DEq Then valor = "Amarillo"
If DMes <= DEqM Then valor = "Verde"
'Tooltip CommandColumn: (Dmes/DEq)
Return valor
End Function
how could I do that?thanks!!
Last edited by Daniil; Jun 25, 2013 at 7:48 AM.
Reason: [CLOSED]