Hello,
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:
This is a custom webusercontrol that I have created and the RadToolTipManager loads it the following way:
and here is my AjaxUpdate even that fires when the user hoovers the small icon:
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,
Amer
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"> |
<tr> |
<td> <asp:Image id="Image3" runat="server" ImageUrl="~/images/no_pic.jpg"></asp:Image></td> |
</tr> |
<tr> |
<td colspan="2"><asp:FileUpload id="FileUpload1" Width="370px" runat="server"></asp:FileUpload></td> |
</tr> |
<tr> |
<td colspan="2"><asp:linkbutton id="cmdUploadImage" runat="server" Visible="true" resourcekey="cmdUploadImage" text="Upload" borderstyle="none" cssclass="CommandButton" OnClick="cmdUploadImage_Click"></asp:linkbutton> |
<asp:LinkButton id="btn_deleteImage" runat="server" CssClass="CommandButton" Visible="true" resourcekey="deleteImage" Text="Delete" BorderStyle="none"></asp:LinkButton> |
</td> |
</tr> |
</table> |
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 = |
(Infragistics.WebUI.UltraWebGrid.TemplatedColumn)uwg_rackTypeGrid.Columns.FromKey("imageColumn"); |
Control target = ((Infragistics.WebUI.UltraWebGrid.CellItem) |
imageColumn.CellItems[e.Row.Index]).FindControl("img_rackImage"); |
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"); |
panel.ContentTemplateContainer.Controls.Add(ctrl); |
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,
Amer