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

RadGrid Header Tooltip for Group/Reorder

1 Answer 213 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jessy Joseph
Top achievements
Rank 1
Jessy Joseph asked on 22 Dec 2010, 09:11 PM
In my radgird I have allowed ClientSettings for AllowColumnsReorder="True" AllowDragToGroup="True". One of my column allows only to reorder and no grouping is allowed in that column. And the second column I have both reorder and grouping is allowed. Now the problem is that in both columns tooltip it shows "Drag to group or reorder". I only want in th efirst column tootip to show "Drag to reorder" and the second one ""Drag to group or reorder".

<telerik:GridBoundColumn DataField="ProductName" HeaderText="ProductName" SortExpression="ProductName"
    UniqueName="ProductName" ReadOnly="True" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true"
    ShowFilterIcon="false" FilterControlWidth="260px" HeaderStyle-Width="280px" ItemStyle-Wrap="true"
    FilterDelay="4000" Groupable="false"  >
</telerik:GridBoundColumn>  
 <telerik:GridBoundColumn DataField="ManufacturerName" HeaderText="ManufacturerName"
      SortExpression="ManufacturerName" UniqueName="ManufacturerName" ReadOnly="True"
      CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" ShowFilterIcon="false"
      FilterControlWidth="110px" HeaderStyle-Width="130px" ItemStyle-Wrap="false" FilterDelay="4000">
 </telerik:GridBoundColumn>

 I also did some testing by applying the following:
 1)
 RadGrid.ClientSettings.ClientMessages.DragToGroupOrReorder = "drag to reorder";
 
 But the problem in this one was both the columns tootip was showing "drag to reorder"

 2) I did not see any changes in the tooltip at all. It was still showing ""Drag to group or reorder"

protected void RadGrid_ItemDataBound(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridHeaderItem)
        {
      
            GridHeaderItem header = (GridHeaderItem)e.Item;
            header["ProductName"].ToolTip = "Drag to reorder";
  
  
  
        }
    }


Thanks.

1 Answer, 1 is accepted

Sort by
1
Tsvetina
Telerik team
answered on 27 Dec 2010, 04:05 PM
Hi Jessy,

You could try setting the RadGrid.ClientSettings.ClientMessages.DragToGroupOrReorder property to an empty string and specifying a HeaderTooltip for each column separately.

All the best,
Tsvetina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
Jessy Joseph
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or