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

ToolTip (not manager) and Ajax (post 1 of 2)

3 Answers 280 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
fglrxandyou
Top achievements
Rank 1
fglrxandyou asked on 10 Jul 2007, 07:00 PM
I have 5 scenarios.  UpdatePanel, AjaxManager_P, AjaxPanel_P, AjaxPanel_Old, AjaxManager_Old.  Browser used in these examples if FF 2.0.0.4.  Cache cleared on each refresh.

Each scenario is one in which there is an anchor, a tooltip, and an item which causes postback.  In the cases of the panels, all three are contained in the panel.  In the case of the Managers, the updated controls are the ToolTips, the initiators are the postback buttons.


UpdatePanel:
First Ajax-Postback works.  Second Ajax-Postback returns an alert: "Invalid JSON Primitive ."

<asp:UpdatePanel ID="testUpdatePanel" runat="Server"
    <ContentTemplate> 
        <asp:Button ID="postbackButton1" runat="server" /> 
        <asp:Label ID="tooltipAnchor1" runat="server">ToolTip Anchor 1, Update Panel</asp:Label> 
        <telerik:RadToolTip ID="tooltip1" runat="server" TargetControlID="tooltipAnchor1">This is a tooltip</telerik:RadToolTip> 
    </ContentTemplate> 
</asp:UpdatePanel> 


Prometheus Panel
On update, the toolTip no longer attached to element.  On second update, receive JSON alert as before.

<telerik:RadAjaxPanel ID="prometheusAjaxPanel" runat="Server"
    <asp:Button ID="postbackButton1" runat="server" /> 
    <asp:Label ID="tooltipAnchor1" runat="server">ToolTip Anchor 1, Update Panel</asp:Label> 
    <telerik:RadToolTip ID="tooltip1" runat="server" TargetControlID="tooltipAnchor1">This is a tooltip</telerik:RadToolTip> 
</telerik:RadAjaxPanel> 


AjaxPanel (old)
First ajax-postback works, tooltip still attached.  Onthe second update, a Server Error occurs displaying the same text that the alert displayed earlier.

<radA:RadAjaxPanel ID="oldAjaxPanel" runat="Server" EnableOutsideScripts="true" UseEmbeddedScripts="true"
    <asp:Button ID="postbackButton1" runat="server" /> 
    <asp:Label ID="tooltipAnchor1" runat="server">ToolTip Anchor 1, Update Panel</asp:Label> 
    <telerik:RadToolTip ID="tooltip1" runat="server" TargetControlID="tooltipAnchor1">This is a tooltip</telerik:RadToolTip> 
</radA:RadAjaxPanel> 


Prometheus AjaxManager
First Postback works, Tooltip Opens, Second postback causes "Invalid JSON primitive ."


<telerik:RadAjaxManager ID="ajaxManager"  runat="server"
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="postbackButton1"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="tooltip1" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManager> 
  
  
<asp:Button ID="postbackButton1" runat="server" /> 
<asp:Label ID="tooltipAnchor1" runat="server">ToolTip Anchor 1, Update Panel</asp:Label> 
<telerik:RadToolTip ID="tooltip1" runat="server" TargetControlID="tooltipAnchor1">This is a tooltip</telerik:RadToolTip> 
 
    


Finally, Old Ajax Manager.

Old Ajax Manager.. works.

<radA:RadAjaxManager ID="oldAjaxManager" runat="Server" UseEmbeddedScripts="true" EnableOutsideScripts="true"
    <AjaxSettings> 
        <radA:AjaxSetting AjaxControlID="postbackButton1"
            <UpdatedControls> 
                <radA:AjaxUpdatedControl ControlID="tooltip1" /> 
                <radA:AjaxUpdatedControl ControlID="tooltipAnchor1" /> 
            </UpdatedControls> 
        </radA:AjaxSetting> 
    </AjaxSettings> 
</radA:RadAjaxManager> 
  
  
<asp:Button ID="postbackButton1" runat="server" /> 
<asp:Label ID="tooltipAnchor1" runat="server">ToolTip Anchor 1, Update Panel</asp:Label> 
<telerik:RadToolTip ID="tooltip1" runat="server" TargetControlID="tooltipAnchor1">This is a tooltip</telerik:RadToolTip> 
 


In the next obvious scenario, if one puts a postback type control inside the tooltip (eg: a button), then the tooltip returns, empty. 

<radA:RadAjaxManager ID="oldAjaxManager" runat="Server" UseEmbeddedScripts="true" EnableOutsideScripts="true"
    <AjaxSettings> 
        <radA:AjaxSetting AjaxControlID="button2"
            <UpdatedControls> 
                <radA:AjaxUpdatedControl ControlID="tooltip1" /> 
                <radA:AjaxUpdatedControl ControlID="tooltipAnchor1" /> 
                <radA:AjaxUpdatedControl ControlID="button2" /> 
            </UpdatedControls> 
        </radA:AjaxSetting> 
    </AjaxSettings> 
</radA:RadAjaxManager> 
  
  
<asp:Button ID="postbackButton1" runat="server" /> 
<asp:Label ID="tooltipAnchor1" runat="server">ToolTip Anchor 1, Update Panel</asp:Label> 
<telerik:RadToolTip ID="tooltip1" runat="server" TargetControlID="tooltipAnchor1"><asp:Button ID="button2" runat="server" /></telerik:RadToolTip> 
 
      




This is a great deal of complication that isn't very fun to deal with at all.  That the tool tip only works properly with the old ajax manager, or perhaps it works propertly with the new pieces in a way that isn't immediately obvious. 

I don't really want to use the tooltip manager.  There's no reason to-- my fields are static.  The only reason I am updating the tooltip at all is because otherwise, it won't reattach to the label. 

In my second post, I will discuss why, despite this working finally as described, when placing the ToolTips in templates, the toolTip stops working even with the old ajax manager.

Ideally, I want to use the Prometheus Ajax, and more than that, AjaxManager.




3 Answers, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 13 Jul 2007, 12:50 PM
Hello fglrxandyou,
We are aware of this issue and our developers are currently working on it. The fix will be available with the next update of the Prometheus suite that will be about the end of july or the beginning of august. In case you need the fix earlier, please open a new support ticket and we will send you the hotfix as soon as it is ready.

All the best,
Tsvetie
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Raj Kanaparti
Top achievements
Rank 1
answered on 25 Jul 2007, 06:17 PM
I am using the RadToolManager from HotFix  verion 2007.1.626.0. When I try to open the RadToolTip manager the second time , I am getting invalid Json Primitive error. Looks like you guys are already aware of this problem.Can you please send me the HotFix if there is one available.

Thanks,
Raj

0
Petya
Telerik team
answered on 26 Jul 2007, 08:59 AM
Hello Raj Kanaparti,

Please, open a support thread and we will send you the latest hotfix of Prometheus. Please, find attached instructions on how to open a support ticket.

Kind regards,
Petya
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ToolTip
Asked by
fglrxandyou
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Raj Kanaparti
Top achievements
Rank 1
Petya
Telerik team
Share this question
or