Button inside tooltip not fireing postback

2 posts, 0 answers
  1. Amer Mohammed
    Amer Mohammed avatar
    1 posts
    Member since:
    Aug 2005

    Posted 06 Jun 2008 Link to this post

    I have tooltipified a column in a infragistics UltraWebGrid using the tooltipmanager. When the user hoovers a small icon a tooltip shows up with the following content:

    <table cellspacing="0" cellpadding="0" width="370px">  
            <td>&nbsp;<asp:Image id="Image3" runat="server" ImageUrl="~/images/no_pic.jpg"></asp:Image></td>  
            <td colspan="2"><asp:FileUpload id="FileUpload1" Width="370px" runat="server"></asp:FileUpload></td>  
            <td colspan="2"><asp:linkbutton id="cmdUploadImage" runat="server" Visible="true" resourcekey="cmdUploadImage" text="Upload" borderstyle="none" cssclass="CommandButton" OnClick="cmdUploadImage_Click"></asp:linkbutton>&nbsp;   
                <asp:LinkButton id="btn_deleteImage" runat="server" CssClass="CommandButton" Visible="true" resourcekey="deleteImage" Text="Delete" BorderStyle="none"></asp:LinkButton>&nbsp;   

    This is a custom webusercontrol that I have created and the RadToolTipManager loads it the following way:

    protected void uwg_rackTypeGrid_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e)  
                Infragistics.WebUI.UltraWebGrid.TemplatedColumn imageColumn =  
                Control target = ((Infragistics.WebUI.UltraWebGrid.CellItem)  
                if (!Object.Equals(target, null))  
                    if (!Object.Equals(this.RadToolTipManager1, null))  
                        Infragistics.WebUI.UltraWebGrid.UltraGridRow myRow = (Infragistics.WebUI.UltraWebGrid.UltraGridRow)e.Row;  
                        //Add the button (target) id to the tooltip manager  
                        this.RadToolTipManager1.TargetControls.Add(target.ClientID, myRow.Cells.FromKey("RackType_ID").ToString(), true);  

    and here is my AjaxUpdate even that fires when the user hoovers the small icon:

    protected void RadToolTipManager1_AjaxUpdate(object sender, Telerik.Web.UI.ToolTipUpdateEventArgs e)  
                this.UpdateToolTip(e.Value, e.UpdatePanel);  
            private void UpdateToolTip(string rowID, UpdatePanel panel)  
                Control ctrl = Page.LoadControl("~/DesktopModules/STS.POP.WebControls/TT_ImageRackType.ascx");  
                STS.POP.WebControls.TT_ImageRackType ttImageRackType = (STS.POP.WebControls.TT_ImageRackType)ctrl;  
                ttImageRackType.RackType_ID = rowID;  

    So far everything works fine, the tooltip is loaded with my custom webusercontrol inside.

    The user can then select an image using the standard fileUpload control and then click the cmdUploadImage linkbutton. The problem is that the click is not firing any postback and because of that I can not read any filename from the fileUpload control.

    The UltraWebGrid is set to AJAX=false and is firing postbacks when used. So its not the grid. I am not using any ajaxpanel of some sort. So why am I not getting a postback when clicking on the cmdUploadImage button that is inside the toolTip?

    Any help would be GREATLY appreciated!

    Thank you,
  2. Svetlina Anati
    Svetlina Anati avatar
    2795 posts

    Posted 09 Jun 2008 Link to this post

    Hello Amer,

    I tried to reproduce the problem without the Infragistics UltraWebGrid and I used most of your code directly in my test project but unfortunately to no avail.

    Would you please examine my test project which is attached here and modify it further in order to reproduce the problem? Once it reproduces it, please open a new support ticket, send it back to me and I will do my best to help.

    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top