Hi all,
The scenario is as follows:
I have a datasource, which contains a string called "comments" which has rich text. When I bind it to the Grid, I am trying to display the column as an icon and when user hovers over the icon the tooltip is displayed with the text. I used the following code:
My problem is that the tooltip does not show the formatted rich text, it only displays the normal text, without line breaks etc. Is there any way to show rich text on the tooltip or using any other mechanism inside the grid?
The scenario is as follows:
I have a datasource, which contains a string called "comments" which has rich text. When I bind it to the Grid, I am trying to display the column as an icon and when user hovers over the icon the tooltip is displayed with the text. I used the following code:
My problem is that the tooltip does not show the formatted rich text, it only displays the normal text, without line breaks etc. Is there any way to show rich text on the tooltip or using any other mechanism inside the grid?
<telerik:GridTemplateColumn HeaderStyle-Width="20px" UniqueName="Comments" AllowFiltering="false" ItemStyle-VerticalAlign="Bottom" ItemStyle-HorizontalAlign="Left" HeaderText="Comments"> <ItemTemplate> <asp:Image ID="imgInfo" runat="server" ImageUrl="<% $WSSUrl:~info.png%>" /> <telerik:RadToolTipManager runat="server" ID="radTTMgrInfo" Position="BottomRight" RelativeTo="Element" Width="600px" Height="600px" Animation="Fade" ShowCallout="false" OffsetX="-70" OffsetY="-1" ShowDelay="0" ShowEvent="OnMouseOver" HideEvent="FromCode" OnClientBeforeHide="OnClientBeforeHide" OnClientShow="OnClientShow" Text=' <%# Eval("Comments") %>' ContentScrolling="Y"> <TargetControls> <telerik:ToolTipTargetControl TargetControlID="imgInfo" /> </TargetControls> </telerik:RadToolTipManager> </ItemTemplate> </telerik:GridTemplateColumn>