| protected void RadToolTipManager1_AjaxUpdate(object sender, Telerik.Web.UI.ToolTipUpdateEventArgs e) |
| { |
| Control ctrl = Page.LoadControl("~/search.ascx"); |
| Telerik.Web.UI.RadAjaxPanel pnl = new Telerik.Web.UI.RadAjaxPanel(); |
| pnl.Width = new Unit(500); |
| pnl.Controls.Add(ctrl); |
| e.UpdatePanel.ContentTemplateContainer.Controls.Add(pnl); |
| } |
| <telerik:RadSlidingZone ID="SlidingZone1" runat="server" Width="22"> |
| <telerik:RadSlidingPane ID="SlidingPane1" Title="Navigation" runat="server" Width="150" |
| OnClientDocked="Docked" OnClientUndocked="UnDocked"> |
| </telerik:RadSlidingPane> |
| </telerik:RadSlidingZone> |
| </telerik:RadPane> |
| <telerik:RadSplitBar ID="SplitBar" runat="server" /> |
| function Docked(sender, eventArgs) { |
| var splitBar = $find("<%=SplitBar.ClientID%>"); |
| alert(splitBar.get_enableResize()); |
| splitBar.set_enableResize(true); |
| alert(splitBar.get_enableResize()); |
| } |
| function UnDocked(sender, eventArgs) { |
| var splitBar = $find("<%=SplitBar.ClientID%>"); |
| alert(splitBar.get_enableResize()); |
| splitBar.set_enableResize(false); |
| } |
We have an application which is listing subjects (with an underlying link) in a grid as a search result. (Similar as a search result in a SPS document list). What we want to achieve is this:
When a user moves the mouse pointer over a subject link, a tool tip window should appear which offers a preview of the document content to which the link would lead.
So the follwowing questions arise:
1. Can the Telerik ToolTip be applied on such a link in a list or is it possible only on an icon or image?
2. If we would prepare the relevant text in a database table, can we dynamically control the content which the tool tip shall display? (Depending on a key which is found in the URL?)
3. In case these features above in 1 and 2 are not available out of the box, is it possible to develop such a feature? If so, do you have a recommendation, who could do this?
Thanks for any hint and answer
Peter

I came across an interesting bug that I thought I would share with everyone just in case it is happening to them as well.
When you have saved a file from the editor, if you have a tag, a space and then some text (example below), when saved the 'Â' character appears. This seems to be because a is missing and is rather replaced with the character code 160.
| <td> Some text </td> |
| shows as |
| Â Some text |
When you view the saved file in notepad/ word pad/ visual studio etc. you do not see the character. If you view it in a hex editor, you do.
A problem only arises if you open the saved HTML file, manipulate it and then resave it because then the character code is picked up and acted on (rendered).
Once I managed to track down the problem, the fix was really quite simple, simply:
1. Encode the text to HTML
2. Replace the offending character with a nbsp;
3. Decode from HTML ready for saving or more manipulation.
| string contentData = Server.HtmlEncode(this._RadEditor.Content); |
| contentDatacontentDatacontentData = contentData.Replace(" ", "&nbsp;"); |
| contentData = Server.HtmlDecode(contentData); |
I must stress that this bug only appears after you try and manipulate the document by loading it, manipulating it and resaving it (but it did happen on every machine that we tested it on). If you are viewing your saved documents straight off then this should not be a problem for you.