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

Remove cell and week days tooltip shown in datepicker

5 Answers 395 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Dvir
Top achievements
Rank 1
Dvir asked on 24 Jun 2014, 07:09 AM
Hello, I'mt trying to disable all tooltips associated with the datepicker.
I succeeded to disable the cell days tooltip by setting:

radDatePicker.Calendar.ShowDayCellToolTips=false;

but when I hover the basic days in the week it still shows me the day name. (like in the picture attached)




5 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 26 Jun 2014, 09:42 AM
Hi Dvir,

Please try the below JavaScript to achieve your scenario.

JavaScript:
function pageLoad() {
    var item = document.getElementsByTagName("th");
    for (var i = 0; i < item.length; i++) {
        item[i].title = "";
    }
}

Thanks,
Princy.
0
Eyup
Telerik team
answered on 27 Jun 2014, 06:19 AM
Hello Dvir,

To be more specific, you can use the following approach:
<telerik:RadDatePicker ID="RadDatePicker1" runat="server">
    <Calendar runat="server" ShowDayCellToolTips="false">
        <ClientEvents OnLoad="calendarLoad" />
    </Calendar>
</telerik:RadDatePicker>
JavaScript:
function calendarLoad(sender, args) {
    $(sender.get_element()).find("[title]").each(function (i, el) {
        el.title = "";
    });
}

Hope this helps. Please give it a try and let me know if it works for you.

Regards,
Eyup
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Web Developer
Top achievements
Rank 1
answered on 23 Feb 2015, 09:50 PM
When i use these methods, the Tooltip shows up Blank? how can i get rid of any tooltip in a RadDatePicker in the Navigations area and the Day of the Week Tooltips? i am using the RadToolTi[p Manager on these pages and no matter what i do i cant get rid of the Blank Tooltips? please help and thank you!

Eddie B.
0
Web Developer
Top achievements
Rank 1
answered on 24 Feb 2015, 12:57 PM
How would a developer remove the title Attribute from the calendar items instead of removing just the title text?
function calendarLoad(sender, args) {    
$(sender.get_element()).find("[title]").each(function (i, el) {        
el.removeAttribute("title");    });

}

Or .function calendarLoad(sender, args) {    
$(sender.get_element()).find("[title]").each(function (i, el)
removeAttr( "title" );    });

}

Doesnt seem to work for me?

thanks in advance
0
Eyup
Telerik team
answered on 26 Feb 2015, 02:50 PM
Hi,

I've already replied to your query in the following forum post:
http://www.telerik.com/forums/remove-tooltips-from-calendar-navigation-and-day-heading#kcOALdc2fkGT8LditvNu5w

I suggest that we continue our conversation on the mentioned thread.

Regards,
Eyup
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Calendar
Asked by
Dvir
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Eyup
Telerik team
Web Developer
Top achievements
Rank 1
Share this question
or