This question is locked. New answers and comments are not allowed.
refer the below link , I want to disable hyperlink from dates except special dates , because it misguids the user .
http://demos.telerik.com/aspnet-mvc-beta/calendar/selectaction
http://demos.telerik.com/aspnet-mvc-beta/calendar/selectaction
3 Answers, 1 is accepted
0
Hello Gaurav,
You can achieve your goal with the following code snippet:
It simply kill live events attached to the table cells and then re-attach those which satisfy the required condition.
All the best,
Georgi Krustev
the Telerik team
You can achieve your goal with the following code snippet:
<% Html.Telerik().ScriptRegistrar() .OnDocumentReady(() => { %> var calendar = $('#Calendar').data('tCalendar'); var $calendar = $(calendar.element); var tableCells = $calendar.find('td:not(.t-state-disabled):has(.t-link)').die() tableCells.each(function(i,c) { var $cell = $(c); if($cell.attr('href') != '#') $cell.live('mouseenter', $.telerik.hover) .live('mouseleave', $.telerik.leave) .live('click', $.proxy(calendar.navigateDown, calendar)); }); <% }); %>It simply kill live events attached to the table cells and then re-attach those which satisfy the required condition.
All the best,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
Gaurav
Top achievements
Rank 1
answered on 30 Jun 2010, 10:21 AM
Hello
Georgi Krustev
thanks for replay ,
your posted code is working fine for current month , but when I goes to previous month which also contains some special dates it fails .
Georgi Krustev
thanks for replay ,
your posted code is working fine for current month , but when I goes to previous month which also contains some special dates it fails .
0
Hello Gaurav,
I have test the suggested code snippet over Select Action example of the calendar. Everything work as expected on my end. I will ask you to send us some test project, which implements the required feature. Thus we will investigate it locally and advice you further.
Greetings,
Georgi Krustev
the Telerik team
I have test the suggested code snippet over Select Action example of the calendar. Everything work as expected on my end. I will ask you to send us some test project, which implements the required feature. Thus we will investigate it locally and advice you further.
Greetings,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items