I have a RadCalendar in MultiView mode, with AutoPostback set to true. Multiple selections are enabled.
I want to cancel postback in response to a date click and change the
CSS class of the DOM Element (the td cell). I'm using the client
side code shown below. It's hooked to the OnDateClick event.
The event handler cancels postback as expected. The first alert displays
class=radCalDefault_Default. The second alerts class=Red. When the event handler
completes however, the IE Developer Toolbar shows that the cells CSS class
has returned to radCalDefault_Default.
Can you advise as to how to change CSS classes on the client so that they persist?
function OvernightCalendar_OnDateClick(calendarInstance, args)
{
var renderDay = args.get_renderDay();
alert('Class Name: ' + renderDay.DomElement.className);
renderDay.DomElement.className = 'Red';
alert('Class Name (After): ' + renderDay.DomElement.className);
args.set_cancel(true);
return false;
}
Also: Is there a way to get Intellisense on the Telerik javascript objects?
Best,
Bob
I want to cancel postback in response to a date click and change the
CSS class of the DOM Element (the td cell). I'm using the client
side code shown below. It's hooked to the OnDateClick event.
The event handler cancels postback as expected. The first alert displays
class=radCalDefault_Default. The second alerts class=Red. When the event handler
completes however, the IE Developer Toolbar shows that the cells CSS class
has returned to radCalDefault_Default.
Can you advise as to how to change CSS classes on the client so that they persist?
function OvernightCalendar_OnDateClick(calendarInstance, args)
{
var renderDay = args.get_renderDay();
alert('Class Name: ' + renderDay.DomElement.className);
renderDay.DomElement.className = 'Red';
alert('Class Name (After): ' + renderDay.DomElement.className);
args.set_cancel(true);
return false;
}
Also: Is there a way to get Intellisense on the Telerik javascript objects?
Best,
Bob