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

RadToolTipManager response error

4 Answers 177 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
parthavi h
Top achievements
Rank 1
parthavi h asked on 21 May 2010, 12:30 PM
I am using a rad tool tip who's values are set in a user control. I am using an 'OnAjaxupdate' method to load the usercontrol and display the tooltip.

But when i hover the mouse over my image icon (targetcontrol of the radtooltipmanager); i get a pop up window prompting
"radToolTipManager response error. An unknown server error has occured. The status code returned is 500"

Looks like this is happens either if I link a css class in the loaded user control or if I add a style inside user control. Look at my below code inside a user control

<style type="text/css">  
 
     .label  
        {  
            color: Blue;  
            font-familyTahoma;  
            font-size: 1em;  
            font-weight:bold 
        }  
          
     .value  
        {  
            colorblack;  
            font-familyTahoma;  
            font-size: .9em;  
        }  
          
</style> 

<asp:UpdatePanel ID="pnl" runat="server" UpdateMode="Conditional">  
    <ContentTemplate> 
          
        <table border = "0"  align = "center" width = "100%" > 
             
            <tr> 
                <td><asp:Label ID="lblContent" runat="server" Text="Content File:" class = "label"></asp:Label></td>  
                 <td><asp:Label ID="lblContentUrl" runat="server" class = "value"></asp:Label></td>  
            </tr> 
              
            <tr> 
                <td><asp:Label ID="lblTotalLinks" runat="server" Text="Total Links:" class = "label"></asp:Label></td>  
                <td><asp:Label ID="lblTotalLinksValue" runat="server" class = "value"></asp:Label></td>  
                 
            </tr> 
             <tr> 
                <td><asp:Label ID="lblVersion" runat="server" Text="Version:"  class = "label"></asp:Label></td>  
                 <td><asp:Label ID="lblVersionValue" runat="server" class = "value"></asp:Label></td>  
            </tr> 
              
            <tr> 
                <td><asp:Label ID="lblCheckedOut" runat="server" Text="Checked Out:" class = "label" ></asp:Label></td>  
                <td><asp:Label ID="lblCheckedOutValue" runat="server" class = "value"></asp:Label></td>  
                 
            </tr> 
             
            <tr> 
                <td><asp:Label ID="lblCreatedOn" runat="server" Text="Created On:" class = "label" ></asp:Label></td>  
                <td><asp:Label ID="lblCreatedOnValue" runat="server" class = "value"></asp:Label></td>  
                 
            </tr> 
 
            <tr> 
                <td><asp:Label ID="lblLastModifiedOn" runat="server" Text="Last Modified On:" class = "label"></asp:Label></td>  
                <td><asp:Label ID="lblLastModifiedOnValue" runat="server" class = "value"></asp:Label></td>  
                 
            </tr> 
        </table> 
         
    </ContentTemplate> 
</asp:UpdatePanel> 


What does the error mean?

My code files are
1.usercontrol.ascx (defined the user control),
2.usercontrol.ascx.cs(defined labels and textboxes as properties whose values are set in the default.aspx.cs page),
3.default.aspx (web page) and
4.default.aspx.cs(code behind having 'OnAjaxUpdate' method used for loading usercontrol and populationg the tooltip with values)

Also i am using an external css file to manage the look of the tooltip. But it has no effect on the tooltip content. Sohow can i change the font-size , color etc of the content inside the tooltip by using CSS or inline styles?

Any help in this is highly appreciated...

4 Answers, 1 is accepted

Sort by
0
Petio Petkov
Telerik team
answered on 26 May 2010, 05:02 PM
Hello,

I believe that the core of the problem is not related to the styles you added. Just for test try to open the UserControl in the page (not in RadToolTip). In case that you still have this problem, please send us a source code which will help us to reproduce the problem locally. Once we receive it, we will do our best to help you.

You can find how to load external css file (In the Page)  and apply css classes to the elements which are in the UserControl(Information.ascx) in the following example:
http://demos.telerik.com/aspnet-ajax/tooltip/examples/tooltipasformchild/defaultcs.aspx

Sincerely yours,
Petio Petkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Sunil
Top achievements
Rank 1
answered on 09 Aug 2010, 05:53 PM
Any idea what this is. I have almost the exact same situation and I am getting this error sporadically.

Any update on this.

Thanks,
Sunil
0
Svetlina Anati
Telerik team
answered on 10 Aug 2010, 09:11 AM
Hi guys,

This error is not directly related to RadToolTipManager but could be reproduced with a standard update panel as well and usually occurs when something is wrong with the server code. You can find more information on the net, e.g below:

http://www.google.bg/#hl=bg&rlz=1W1ADFA_en&q=The+status+code+returned+is+500&aq=f&aqi=&aql=&oq=&gs_rfai=&fp=2d4371d2e102af3d

This being said, I recommend to debug the server code.

If the problem persists, you can cancel the error alert in the OnClientResponseError event as shown below:

<script type="text/javascript"
    function OnClientResponseError(sender, args) { 
        args.set_cancelErrorAlert(true); 
    
    
</script

i hope that my reply and suggestion are helpful, let me know how it goes.

Regards,
Svetlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
parthavi h
Top achievements
Rank 1
answered on 23 Sep 2010, 01:47 PM
Hey,

Thanks a lot, there were no problems with the css settings, i added the tool tip as a part of the table structure that i have. Its working fine now. I do not know how exactly. But its working just fine. 

thanks a lot,
Parthavi
Tags
ToolTip
Asked by
parthavi h
Top achievements
Rank 1
Answers by
Petio Petkov
Telerik team
Sunil
Top achievements
Rank 1
Svetlina Anati
Telerik team
parthavi h
Top achievements
Rank 1
Share this question
or