This is a migrated thread and some comments may be shown as answers.

RadToolTipManager response error with radsplitter

2 Answers 96 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
CH
Top achievements
Rank 1
CH asked on 21 Jun 2011, 05:16 AM










Dear Sir:
    I have a asp.net application and i used the radsplitter to separate top RadPane and bottom RadPane. the top panel will show up a separate web page with a grid inside. when any one of the row selected in the top pane and the client side will ask the bottom pane to show up the detail of the record.
   everything work fine when it first time show up but the problem will happen when i clicked on some of the button/links and the page will AJAX post back to server and rebind the grid again. The tool tips on the top panel's grid works fine but when i clicked on the row and the detail pane show up. the tool tips on the bottom pane will show up the error

"Rad Tool Tip manager response error
    An unknown error occurred while processing to the request on the server. the status code returned from the server was 12031"


i am not sure is it the problem of the ajaxmanager's setting for the top pane, after the row selected on the grid and the bottom pane's page will FULLY RELOAD. when i click on the control and tooltip will show up the error.

i tried to use the latest version of telerik but it still  not work.

i include some code for you to have look. i hope i can give you some help for understand for my situration. if you want then i can included my source code to you

Search_Instruction.aspx
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" UpdatePanelsRenderMode="Inline" >
                   <AjaxSettings>
                         
                       <telerik:AjaxSetting AjaxControlID="grdInstruction">
                           <UpdatedControls>
                               <telerik:AjaxUpdatedControl ControlID="grdInstruction" 
                                   LoadingPanelID="RadAjaxLoadingPanel1" />
                               <telerik:AjaxUpdatedControl ControlID="RadToolTipManager1" 
                                   LoadingPanelID="RadAjaxLoadingPanel1" />
                               <telerik:AjaxUpdatedControl ControlID="lbMsg" />
                           </UpdatedControls>
                       </telerik:AjaxSetting>
                       <telerik:AjaxSetting AjaxControlID="RadToolTipManager1">
                           <UpdatedControls
                               <telerik:AjaxUpdatedControl ControlID="RadToolTipManager1" 
                                   LoadingPanelID="RadAjaxLoadingPanel1" />
                           </UpdatedControls>
                       </telerik:AjaxSetting>
                       <telerik:AjaxSetting AjaxControlID="lbtnBound4Locator">
                           <UpdatedControls>
                               <telerik:AjaxUpdatedControl ControlID="grdInstruction" LoadingPanelID="RadAjaxLoadingPanel1" />
                               <telerik:AjaxUpdatedControl ControlID="lbtnBound4Locator" />
                               <telerik:AjaxUpdatedControl ControlID="litBound4Locator" />
                               <telerik:AjaxUpdatedControl ControlID="lbtnBound5Locator" />
                               <telerik:AjaxUpdatedControl ControlID="litBound5Locator" />
                               <telerik:AjaxUpdatedControl ControlID="lbtnPropertyLocator" />
                               <telerik:AjaxUpdatedControl ControlID="litPropertyLocator" />
                               <telerik:AjaxUpdatedControl ControlID="cboBuildingLocator" />
                               <telerik:AjaxUpdatedControl ControlID="litBuildingLocator" />
                               <telerik:AjaxUpdatedControl ControlID="cboUnitLocator" />
                               <telerik:AjaxUpdatedControl ControlID="lbMsg" />
                               <telerik:AjaxUpdatedControl ControlID="RadToolTipManager1" />
                           </UpdatedControls>
                       </telerik:AjaxSetting>
                       <telerik:AjaxSetting AjaxControlID="lbtnBound5Locator">
                           <UpdatedControls>
                               <telerik:AjaxUpdatedControl ControlID="grdInstruction" LoadingPanelID="RadAjaxLoadingPanel1" />
                               <telerik:AjaxUpdatedControl ControlID="lbtnBound4Locator" />
                               <telerik:AjaxUpdatedControl ControlID="litBound4Locator" />
                               <telerik:AjaxUpdatedControl ControlID="lbtnBound5Locator" />
                               <telerik:AjaxUpdatedControl ControlID="litBound5Locator" />
                               <telerik:AjaxUpdatedControl ControlID="lbtnPropertyLocator" />
                               <telerik:AjaxUpdatedControl ControlID="litPropertyLocator" />
                               <telerik:AjaxUpdatedControl ControlID="cboBuildingLocator" />
                               <telerik:AjaxUpdatedControl ControlID="litBuildingLocator" />
                               <telerik:AjaxUpdatedControl ControlID="cboUnitLocator" />
                               <telerik:AjaxUpdatedControl ControlID="lbMsg" />
                               <telerik:AjaxUpdatedControl ControlID="RadToolTipManager1" />
                           </UpdatedControls>
                       </telerik:AjaxSetting>
                       <telerik:AjaxSetting AjaxControlID="lbtnPropertyLocator">
                           <UpdatedControls>
                               <telerik:AjaxUpdatedControl ControlID="grdInstruction" LoadingPanelID="RadAjaxLoadingPanel1" />
                               <telerik:AjaxUpdatedControl ControlID="lbtnBound4Locator" />
                               <telerik:AjaxUpdatedControl ControlID="litBound4Locator" />
                               <telerik:AjaxUpdatedControl ControlID="lbtnBound5Locator" />
                               <telerik:AjaxUpdatedControl ControlID="litBound5Locator" />
                               <telerik:AjaxUpdatedControl ControlID="lbtnPropertyLocator" />
                               <telerik:AjaxUpdatedControl ControlID="litPropertyLocator" />
                               <telerik:AjaxUpdatedControl ControlID="cboBuildingLocator" />
                               <telerik:AjaxUpdatedControl ControlID="litBuildingLocator" />
                               <telerik:AjaxUpdatedControl ControlID="cboUnitLocator" />
                               <telerik:AjaxUpdatedControl ControlID="lbMsg" />
                               <telerik:AjaxUpdatedControl ControlID="RadToolTipManager1" />
                           </UpdatedControls>
                       </telerik:AjaxSetting>
                       <telerik:AjaxSetting AjaxControlID="cboBuildingLocator">
                           <UpdatedControls>
                               <telerik:AjaxUpdatedControl ControlID="grdInstruction" LoadingPanelID="RadAjaxLoadingPanel1" />
                               <telerik:AjaxUpdatedControl ControlID="lbtnBound4Locator" />
                               <telerik:AjaxUpdatedControl ControlID="litBound4Locator" />
                               <telerik:AjaxUpdatedControl ControlID="lbtnBound5Locator" />
                               <telerik:AjaxUpdatedControl ControlID="litBound5Locator" />
                               <telerik:AjaxUpdatedControl ControlID="lbtnPropertyLocator" />
                               <telerik:AjaxUpdatedControl ControlID="litPropertyLocator" />
                               <telerik:AjaxUpdatedControl ControlID="cboBuildingLocator" />
                               <telerik:AjaxUpdatedControl ControlID="litBuildingLocator" />
                               <telerik:AjaxUpdatedControl ControlID="cboUnitLocator" />
                               <telerik:AjaxUpdatedControl ControlID="lbMsg" />
                           </UpdatedControls>
                       </telerik:AjaxSetting>
                       <telerik:AjaxSetting AjaxControlID="cboUnitLocator">
                           <UpdatedControls>
                               <telerik:AjaxUpdatedControl ControlID="grdInstruction" LoadingPanelID="RadAjaxLoadingPanel1" />
                               <telerik:AjaxUpdatedControl ControlID="lbMsg" />
                           </UpdatedControls>
                       </telerik:AjaxSetting>
                       <telerik:AjaxSetting AjaxControlID="rtbStockMenu">
                           <UpdatedControls>
                               <telerik:AjaxUpdatedControl ControlID="grdInstruction" LoadingPanelID="RadAjaxLoadingPanel1" />
                           </UpdatedControls>
                       </telerik:AjaxSetting>
                       <telerik:AjaxSetting AjaxControlID="mnuInstructionAction">
                           <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="grdInstruction" 
                                   LoadingPanelID="RadAjaxLoadingPanel1" />
                               <telerik:AjaxUpdatedControl ControlID="mnuInstructionAction" />
                               <telerik:AjaxUpdatedControl ControlID="lbMsg" />
                           </UpdatedControls>
                       </telerik:AjaxSetting>
                   </AjaxSettings>
                   <ClientEvents />
               </telerik:RadAjaxManager>
       <telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" 
       OnAjaxUpdate="RadToolTipManager1_AjaxUpdate" 
       CssClass="ToolTipCssClass"
       Animation="Resize" AnimationDuration="300"  
       ShowDelay="0" AutoCloseDelay="0"
       HideDelay="1000" Skin="Hay"
       Width="510px" Height="200px"
       ShowCallout="False"
       ContentScrolling="Auto"
       OffsetX="50" 
       OffsetY="80"
       Position="MiddleRight"  
       HideEvent="ManualClose"
       ShowEvent="OnClick"
       ManualClose="True" 
       meta:resourcekey="RadToolTipManager1Resource1" onclientresponseerror="ToolTipManager_OnClientResponseError" >
   </telerik:RadToolTipManager>

Search_Instruction.aspx.cs

protected void grdInstruction_ItemDataBound(object sender, GridItemEventArgs e)
{
    if (e.Item is GridHeaderItem)
    {
        GridHeaderItem headerItem = (GridHeaderItem)e.Item;
    }
    else if (e.Item is GridDataItem)
    {
        GridDataItem dataItem = (GridDataItem)e.Item;
          
          
        //Control lnkOwnerName = e.Item.FindControl("lnkOwnerName");
        if (!Object.Equals(this.RadToolTipManager1, null))
        {
            if (dataItem["Owner_ID_Text"].Text.Replace(" ", "").Replace("<nobr>", "").Replace("</nobr>", "") != "")
            {
                RadToolTipManager1.TargetControls.Add(((HyperLink)dataItem["Owner_Name"].FindControl("lnkOwner_Name")).ClientID, "Owner_Name|" + dataItem["Owner_ID_Text"].Text.Replace(" ", "").Replace("<nobr>", "").Replace("</nobr>", ""), true);
            }
            if (dataItem["Owner_Contact_ID_Text"].Text.Replace(" ", "").Replace("<nobr>", "").Replace("</nobr>", "") != "")
            {
                RadToolTipManager1.TargetControls.Add(((HyperLink)dataItem["Owner_Contact"].FindControl("lnkOwner_Contact")).ClientID, "Owner_Contact|" + dataItem["Owner_Contact_ID_Text"].Text.Replace(" ", "").Replace("<nobr>", "").Replace("</nobr>", ""), true);
            }
            if (dataItem["Occupant_ID"].Text.Replace(" ", "").Replace("<nobr>", "").Replace("</nobr>", "") != "")
            {
                RadToolTipManager1.TargetControls.Add(((HyperLink)dataItem["Occupant_Name"].FindControl("lnkOccupant_Name")).ClientID, "Occupant_Name|" + dataItem["Occupant_ID"].Text.Replace(" ", "").Replace("<nobr>", "").Replace("</nobr>", ""), true);
            }
            if (dataItem["UC_Exist"].Text.Replace(" ", "") != "0")
            {
                RadToolTipManager1.TargetControls.Add(((HyperLink)dataItem["Unit_Number_From"].FindControl("lnkUnit_Number_From")).ClientID, "Unit_Number_From|" + dataItem["Unit_Id"].Text.Replace(" ", "").Replace("<nobr>", "").Replace("</nobr>", ""), true);
            }
            if (dataItem["Tenant_Id"].Text.Replace(" ", "").Replace("<nobr>", "").Replace("</nobr>", "") != "")
            {
                RadToolTipManager1.TargetControls.Add(((HyperLink)dataItem["Tenant_Name"].FindControl("lnkTenant_Name")).ClientID, "Tenant_Name|" + dataItem["Tenant_Id"].Text.Replace(" ", "").Replace("<nobr>", "").Replace("</nobr>", ""), true);
            }
        }
        switch (dataItem["Agency_Code"].Text.Trim())
        {
            case "SoleA":
                dataItem["ClientSelectColumn"].Style["background-color"] = "Red";
                dataItem["ClientSelectColumn"].Style["color"] = "White";
                 
                break;
            case "co-op":
                dataItem["ClientSelectColumn"].Style["background-color"] = "Pink";
                  
                break;
            case "Multi":
                dataItem["ClientSelectColumn"].Style["background-color"] = "Blue";
                dataItem["ClientSelectColumn"].Style["color"] = "White";
                 
                break;
            case "Hearsay":
                dataItem["ClientSelectColumn"].Style["background-color"] = "ForestGreen";
                dataItem["ClientSelectColumn"].Style["color"] = "White";
                  
                break;
            case "co-op (sa)":
                dataItem["ClientSelectColumn"].Style["background-color"] = "Gray";
                dataItem["ClientSelectColumn"].Style["color"] = "White";
                  
                break;
            case "active":
                dataItem["ClientSelectColumn"].Style["background-color"] = "Orange";
                  
                break;
            case "cp-op(COM)":
                dataItem["ClientSelectColumn"].Style["background-color"] = "rgb(132, 112, 255)";
                dataItem["ClientSelectColumn"].Style["color"] = "White";
                 
                break;
            case "Surrender":
                dataItem["ClientSelectColumn"].Style["background-color"] = "LightSkyBlue";
                break;
            case "Lead":
                dataItem["ClientSelectColumn"].Style["background-color"] = "Maroon";
                dataItem["ClientSelectColumn"].Style["color"] = "White";
                 
                break;
            case "Cobreak":
                dataItem["ClientSelectColumn"].Style["background-color"] = "Cyan";
                break;
            case "OwnerList":
                dataItem["ClientSelectColumn"].Style["background-color"] = "Olive";
                break;
        }
        if (dataItem["UnderOffer"].Text.Trim() == "1")
        {
            dataItem["ClientSelectColumn"].Style["background-color"] = "Yellow";
        }
    }
}



2 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 21 Jun 2011, 12:23 PM
Hello CH,

I am not sure what your exact scenario is and how you use the tooltip in the bottom pane, yet such an error usually indicates an error somewhere in the custom logic of the page that prevents the request to the server from going smoothly. Please make sure that you update the ToolTipManager and clear its target controls when necessary (the code you pasted indicates that you are aware of this necessity, though).

After some further researching online I have discovered that this issue seems to be related to the size of the viewstate and the connection to the server simply being reset. About such problems it is good to contact your network administrators in order to get more information on why the connection is being reset at certain point. Additionally, you can test this on different machines to see if the problem is persistent because it could be even caused by firewall settings.

Here are some other resources I found in the web. The general advice given is to increase the MaxRequestLength property in the WebConfig or use the ViewState less:
I have also attached my test project where I initially tried reproducing your issue for your reference on how I would have done things (although a simplified scenario).

I hope my reply was helpful and you will be able to resolve your issue.

Regards,
Marin
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
CH
Top achievements
Rank 1
answered on 23 Jun 2011, 08:00 AM
Thank you very much for your supporting information. I found the problem is the oversize of the viewstate in my application. it is accerately same case as your supporting information mention.

Finally i put the following into my web.config.
<httpRuntime maxRequestLength="1000000" requestValidationMode="2.0" />
Tags
ToolTip
Asked by
CH
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
CH
Top achievements
Rank 1
Share this question
or