Hoping there is a better work around for this.
I have a description column in a grid and I want to have a set width and not have the text wrap. I then want to have a tooltip show the full description when the user moses over the text.
The issue is that the tooltip does not recognize the width when wrap=true is set on the column. If I take the wrap off everything works fine. My solution was to create another field in my dataset that is only a fixed number of characters wide and then set the tool tip to the full description. it works but I am wondering if there is some other setting that I can still have Wrap=false and have the tooltip not stretch across the screen.
The biggest issue is that the formating of the column is not very clean because the width of each charcater is slightly differnt (kerning).
Thanks,
Craig
I have a description column in a grid and I want to have a set width and not have the text wrap. I then want to have a tooltip show the full description when the user moses over the text.
The issue is that the tooltip does not recognize the width when wrap=true is set on the column. If I take the wrap off everything works fine. My solution was to create another field in my dataset that is only a fixed number of characters wide and then set the tool tip to the full description. it works but I am wondering if there is some other setting that I can still have Wrap=false and have the tooltip not stretch across the screen.
<telerik:GridTemplateColumn DataField="description" HeaderText="Description" |
SortExpression="description" UniqueName="description" AllowFiltering="false"> |
<ItemStyle Width="160px" Wrap="false"/> |
<HeaderStyle Width="160px" /> |
<ItemTemplate> |
<asp:Label ID="Label1" runat="server" Text='<%# Eval("partDescrip") %>'></asp:Label> |
<telerik:RadToolTip ID="RadToolTip1" runat="server" TargetControlID="Label1" |
RelativeTo="Element" Position="MiddleRight" Width="175px" AutoCloseDelay="0" > |
<%# Eval("description") %> |
</telerik:RadToolTip> |
</ItemTemplate> |
</telerik:GridTemplateColumn> |
The biggest issue is that the formating of the column is not very clean because the width of each charcater is slightly differnt (kerning).
Thanks,
Craig