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

[Solved] Small question about calendar and filter

1 Answer 81 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
BRIAN
Top achievements
Rank 1
BRIAN asked on 30 Apr 2009, 09:52 AM
Hi all ! I spend all my morning to search an a priori very simply thing...

I have a grid with a GridDateTimeColumn

In this GridDateTimeColumn, i allow filter, so i have a calendar in my thead

Question, how can i set the tooltip of my calendar ? I have "Open the calendar popup", and i simply want to have another text !

Thanks for your answer and sorry if this is a simply property !

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 30 Apr 2009, 10:45 AM
Hello Brian,

Attach ItemDataBound event to RadGrid and try the following code snippet for changing the ToolTip.

CS:
 
protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)  
{  
    if (e.Item is GridFilteringItem)  
    {  
        GridFilteringItem filterItem = (GridFilteringItem)e.Item;  
        RadDateTimePicker datetimepicker = (RadDateTimePicker)filterItem["BirthDate1"].Controls[0];  
        datetimepicker.ToolTip = "My ToolTip for Textbox";  
        datetimepicker.DatePopupButton.ToolTip = "My ToolTip for Date Pop-up";  
        datetimepicker.TimePopupButton.ToolTip = "My ToolTip for Time pop-up";  
    }  

Thanks,
Princy.
Tags
Calendar
Asked by
BRIAN
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or