3 Answers, 1 is accepted
0
blara
Top achievements
Rank 1
answered on 26 Mar 2008, 02:27 PM
Some additional info: I am just using the RadTooltip control (not the manager) and would like to accomplish these tasks server-side.
Thanks,
0
Accepted
Hello blara,
To your questions:
Best wishes,
Svetlina
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
To your questions:
- I suggest to implement a javascript function which closes the active RadToolTip and after that call it server side. This should look like the following:
function CloseActiveToolTip() { setTimeout(function(){ var controller = Telerik.Web.UI.RadToolTipController.getInstance(); var tooltip = controller.get_ActiveToolTip(); if (tooltip) tooltip.hide(); }, 1000); }
And in your code - behind:
protected void Button1_Click(object sender, EventArgs e) { ClientScript.RegisterStartupScript(GetType(), "closeTip", "CloseActiveToolTip();", true); } - What exactly do you mean by refreshing a DataList server-side? In case you have made changes and want them to take effect you should databind the DataList by calling its DataBind() method in the button's event handler, just before you call the script.
I prepared a simple demonstration of the described approach for closing the active RadToolTip server-side - you can find it in the attached archive file.
Best wishes,
Svetlina
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
blara
Top achievements
Rank 1
answered on 28 Mar 2008, 08:43 PM
Thanks much for your response. Please disregard my second question. The reason why the tooltip contents were not getting refreshed was because I had the DataList wrapped inside of an UpdatePanel. Doing an UpdatePanel.Update() refreshes the tooltip contents.
Thanks!
Thanks!