Hi *,
I have a Webpage that contains a RadOrgChart and RadToolTip-Manager. The Content of the ToolTip is based on the ID given from the RadOrgChart. It works fine until... the session times out.
The Response as soon as the Session times out is:
RadToolTipManager response error: Exception=Sys.WebForms.PageRequestManagerServerErrorException: Value cannot be null. Parameter name: source
I've already added an check that the control should not load then the Value is null.
There are no MS AJAX update panels on the side - I use the RadAjaxManager instead. The GroupItemDataBound-Event is added in the Page_Load and the UserControl loads the Content based on the ID (it loads nothing if no ID is available).
It is no big deal if the Session times out and the ToolTip-Content is not correctly loaded but I need to get rid of the error message and somehow I can't manage that.
Any help would be appreciated. I don't want to hack a 'Session-Keep-alive' or something.
Regards,
Gaby
I have a Webpage that contains a RadOrgChart and RadToolTip-Manager. The Content of the ToolTip is based on the ID given from the RadOrgChart. It works fine until... the session times out.
The Response as soon as the Session times out is:
RadToolTipManager response error: Exception=Sys.WebForms.PageRequestManagerServerErrorException: Value cannot be null. Parameter name: source
I've already added an check that the control should not load then the Value is null.
public void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs e){ if (e.Value != null) { Control ctrl = Page.LoadControl("OrgChartUserDetail.ascx"); ctrl.ID = Guid.NewGuid().ToString(); e.UpdatePanel.ContentTemplateContainer.Controls.Add(ctrl); OrgChartUserDetail details = (OrgChartUserDetail)ctrl; details.ID = e.Value; }}void orgUserOrgChart_GroupItemDataBound(object sender, Telerik.Web.UI.OrgChartGroupItemDataBoundEventArguments e){ var panel = (Panel)e.Item.FindControl("Panel1"); RadToolTipManager2.TargetControls.Add(panel.ClientID, e.Item.ID, true);}<telerik:RadOrgChart ID="orgUserOrgChart" runat="server" ClientIDMode="Static" OnNodeDataBound="orgUserOrgChart_NodeDataBound" GroupColumnCount="2" Skin="Silk"><ItemTemplate> <asp:Panel runat="server" ID="Panel1"> <span class="pseudoImage" style="background-image: url('<%# DataBinder.Eval(Container.DataItem, "PictureString") %>')"></span> <a href="<%# String.Format("mailto:{0}", DataBinder.Eval(Container.DataItem, "eMail"), "", "")%>" class="tooltipLinks"> <img src="images/mail.png" width="25px" alt="Send Email"></a> </asp:Panel> </ItemTemplate> <RenderedFields> <NodeFields> <telerik:OrgChartRenderedField DataField="Description" Label="" /> </NodeFields> </RenderedFields></telerik:RadOrgChart><telerik:RadToolTipManager runat="server" ID="RadToolTipManager2" Skin="Default" OnAjaxUpdate="OnAjaxUpdate" Position="BottomRight" OffsetX="16" OffsetY="16" EnableShadow="false" Width="195" Height="135" HideEvent="LeaveTargetAndToolTip" />There are no MS AJAX update panels on the side - I use the RadAjaxManager instead. The GroupItemDataBound-Event is added in the Page_Load and the UserControl loads the Content based on the ID (it loads nothing if no ID is available).
It is no big deal if the Session times out and the ToolTip-Content is not correctly loaded but I need to get rid of the error message and somehow I can't manage that.
Any help would be appreciated. I don't want to hack a 'Session-Keep-alive' or something.
Regards,
Gaby