Remove cell and week days tooltip shown in datepicker

6 posts, 0 answers
  1. Dvir
    Dvir avatar
    1 posts
    Member since:
    Jun 2014

    Posted 24 Jun 2014 Link to this post

    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)




  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 26 Jun 2014 in reply to Dvir Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Eyup
    Admin
    Eyup avatar
    3005 posts

    Posted 27 Jun 2014 Link to this post

    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.

     
  5. Web Developer
    Web Developer avatar
    8 posts
    Member since:
    Nov 2008

    Posted 23 Feb 2015 in reply to Eyup Link to this post

    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.
  6. Web Developer
    Web Developer avatar
    8 posts
    Member since:
    Nov 2008

    Posted 24 Feb 2015 Link to this post

    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
  7. Eyup
    Admin
    Eyup avatar
    3005 posts

    Posted 26 Feb 2015 Link to this post

    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.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017