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

HeaderTooltip with no Sorting

3 Answers 108 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Albert Shenker asked on 20 Jan 2012, 03:53 PM
It appears the HeaderTooltip property doesn't work when a column isn't sortable (ie has no sortExpression). In my testing this is the case for TemplateColumns, though it may be true of other column types as well. Is Telerik palnning on changing this? Is there a workaround?

3 Answers, 1 is accepted

Sort by
0
Antonio Stoilkov
Telerik team
answered on 25 Jan 2012, 01:46 PM
Hi Albert,

I tried to replicate the issue which you described, but to no avail. Attached to this message, you will find the project which I used for testing.

Please, take a look at it and let me know if there are any differences at your end, which I may be leaving out.

Greetings,
Antonio Stoilkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
answered on 25 Jan 2012, 03:21 PM
Here is my markup. In this case, when you hover over the first column there is no tooltip (no_tooltip.jpg). When you hover over the second, there is (tooltip_visible.jpg). The only difference is the sortexpression. If I give the first column a SortExpression, the tooltip appears (tooltip_sort.jpg).

<telerik:RadGrid id="rgTDC"
                runat="server"
                AutoGenerateColumns="False"
                Skin="Windows7"
                Height="100%"
                Width="100%"
                BorderStyle="None"
                AllowPaging="True"
                AllowSorting="True"
                AllowCustomSorting="True"
                AllowMultiRowSelection="True"
                ShowStatusBar="True"
                ShowGroupPanel="False"
                PageSize="20"
                  
    >
    <MasterTableView 
                DataKeyNames="Id"
                ClientDataKeyNames="Id"
                Width="100%"
                TableLayout="Fixed"
                GroupLoadMode="Client"
                ShowGroupFooter="False"
                HeaderStyle-Height="30px"
                PagerStyle-VerticalAlign="Top"
                CommandItemDisplay="Top"
                EditMode="InPlace"
               >
 
        <Columns>  
            <telerik:GridTemplateColumn HeaderText="Well Material" UniqueName="ThermowellConfiguration.ThermowellMaterial.Name" HeaderToolTip="Thermowell Material" SortExpression="">  
                <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                <HeaderStyle width="140px" HorizontalAlign="Left" VerticalAlign="Bottom" ForeColor="Blue"></HeaderStyle>
                <ItemTemplate
                    <%#DataBinder.Eval(Container.DataItem, "ThermowellConfiguration.ThermowellMaterial.Name")%> 
                </ItemTemplate
                <EditItemTemplate
                    <telerik:RadComboBox id="rcThermowellMaterial" runat="server" Width="130px" Skin="Windows7"></telerik:RadComboBox
                </EditItemTemplate
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn HeaderText="Conn. Size.<br/>in." UniqueName="ThermowellConfiguration.ProcessConnection.Size" SortExpression="ThermowellConfiguration.ProcessConnection.Size" HeaderToolTip="Process Connection Size">  
                <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                <HeaderStyle width="90px" HorizontalAlign="Left" VerticalAlign="Bottom" ForeColor="Blue"></HeaderStyle>
                <ItemTemplate
                    <%#DataBinder.Eval(Container.DataItem, "ThermowellConfiguration.ProcessConnection.Size")%> 
                </ItemTemplate
                <EditItemTemplate
                    <telerik:RadComboBox id="rcProcessConnectionSize" runat="server" Width="80px" Skin="Windows7"></telerik:RadComboBox
                </EditItemTemplate
            </telerik:GridTemplateColumn>
             
             
             
        </Columns>
        <CommandItemTemplate>
             
        </CommandItemTemplate>
        <NoRecordsTemplate></NoRecordsTemplate>
        <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="True" />
    </MasterTableView>
    <ClientSettings  AllowExpandCollapse="True" AllowKeyboardNavigation="true">
        <Selecting AllowRowSelect="True" EnableDragToSelectRows="False"  />
        <Scrolling AllowScroll="True" UseStaticHeaders="True" FrozenColumnsCount="5" />
        <Resizing AllowColumnResize="true" EnableRealTimeResize="True" ResizeGridOnColumnResize="True"/>
        <ClientEvents  />
        <KeyboardNavigationSettings AllowSubmitOnEnter="true" />
    </ClientSettings>
</telerik:RadGrid>
0
Antonio Stoilkov
Telerik team
answered on 30 Jan 2012, 03:28 PM
Hello,

Thank you for reporting the issue. Your Telerik points have been updated for your bug report.

The issue is already fixed and will be part of the upcoming Beta release, which is expected by the end of the week.

Additionally, you could resolve the problem by enabling sorting and then looping through all the columns you don not need sorting and removing the href attribute of the html <a> tag.

Greetings,
Antonio Stoilkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Grid
Asked by
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Answers by
Antonio Stoilkov
Telerik team
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Share this question
or