Originally Posted by
jamesand
Thank you Blueworld for your response, but I'm afraid it doesn't work for me. If I write:
<ext:CommandColumn ID="CommandColumn1" runat="server">
<Commands>
<ext:GridCommand Icon="SportSoccer" CommandName="AsignacionAbonos">
<ToolTip Text="Asignar Abonos" />
</ext:GridCommand>
<ext:CommandSeparator />
<ext:GridCommand Icon="NoteEdit" CommandName="GestionarNotas">
<ToolTip Text="Gestionar notas" />
</ext:GridCommand>
<PrepareCommand Fn="checkTooltip" />
</Commands>
It crashes compliling saying: "preparecommand is not admited"
Try after Commands tag
<ext:CommandColumn ID="CommandColumn1" runat="server">
<Commands>
<ext:GridCommand Icon="SportSoccer" CommandName="AsignacionAbonos">
<ToolTip Text="Asignar Abonos" />
</ext:GridCommand>
<ext:CommandSeparator />
<ext:GridCommand Icon="NoteEdit" CommandName="GestionarNotas">
<ToolTip Text="Gestionar notas" />
</ext:GridCommand>
</Commands>
<PrepareCommand Fn="checkTooltip" />
And since you have two commands, you will need to check for the right command
var checkTooltip= function (grid, command, record, row) {
if(command.command == "....."){
command.qtext = record.data.NOMBRE_EVENTO;
}
};