[CLOSED] ImageCommandColumn - change tooltip in prepare function

  1. #1

    [CLOSED] ImageCommandColumn - change tooltip in prepare function

    Hello,

    I have an ImageCommandColumn that shows two different icons. I am not able to change the tooltip if the second icon is set.
    My ImageCommandColumn:

                                            <ext:ImageCommandColumn ID="GeoCoded" runat="server" Width="30">
                                                <Commands>
                                                    <ext:ImageCommand Icon="WorldNight">
                                                        <ToolTip Text="Auftrag wurde nicht geocodiert." />
                                                    </ext:ImageCommand>
                                                </Commands>
                                                <PrepareCommand Fn="checkGeoCode" />
                                            </ext:ImageCommandColumn>
    My prepare function:

             var checkGeoCode = function (grid, command, record, row) {
    
                 if (record.data.Latitude != "") {
                     command.iconCls = "icon-world";
                     command.setTooltip("Auftrag ist geocodiert"); <- does not work
                     command.toolTip = "Auftrag ist geocodiert"; <- does not work
                 }
    
             };
    So how can I change the tooltip?

    Btw. this Image does not need to be clickable and it does not trigger any function, I just need to display an Icon and tooltip in that column, is there any better way than using an ImageCommandColumn?

    Regards
    Last edited by Daniil; Mar 20, 2013 at 11:26 AM. Reason: [CLOSED]
  2. #2
    Hello @blueworld,

    Please use:
    command.qtext = "new text";
  3. #3
    Thank you Daniil, thats it

Similar Threads

  1. Replies: 2
    Last Post: Mar 09, 2013, 5:05 AM
  2. Replies: 6
    Last Post: Mar 09, 2013, 4:58 AM
  3. Replies: 1
    Last Post: Nov 16, 2012, 4:26 PM
  4. How i can html of tooltip in javascript function
    By vucuongkg in forum 1.x Help
    Replies: 1
    Last Post: Jun 17, 2010, 4:05 PM
  5. change in grid.save function?
    By [WP]joju in forum 1.x Help
    Replies: 4
    Last Post: Sep 29, 2009, 6:45 AM

Posting Permissions