Hi,
We are using version 2010.2.826.35 of the ASP.NET for AJAX components.
Q. I want to be able to create a custom attribute key / value on each TimeSlot in server side code, and then access that custom attribute in javascript when the time slot is clicked. If it matters, my Scheduler will only be displayed in Monthly View.
On the server I have:
We are using version 2010.2.826.35 of the ASP.NET for AJAX components.
Q. I want to be able to create a custom attribute key / value on each TimeSlot in server side code, and then access that custom attribute in javascript when the time slot is clicked. If it matters, my Scheduler will only be displayed in Monthly View.
On the server I have:
Private
Sub
DployRadScheduler_TimeSlotCreated(
ByVal
sender
As
Object
,
ByVal
e
As
Telerik.Web.UI.TimeSlotCreatedEventArgs)
Handles
DployRadScheduler.TimeSlotCreated
e.TimeSlot.Control.Attributes.Add(
"divName"
,
"week1"
)
End
Sub
I don't know how to retrieve that Attribute in javascript when the user clicks on the timeslot. I already have the javascript function in place to handle the OnClientTimeSlotClick event, but I can't seem to get the object that contains the attribute.
Any ideas? Or is there another way to do this? Basically, in Month View, I just want to know what week they clicked in, within the current Scheduler (where the Scheculer is always displaying 5 weeks...).
By the way, I do see that my Attribute and Value are getting written into the source of the HTML, but I obviously don't want to try to navigate through the DOM to find the one that corresponds to the timeslot I clicked.
Thanks In Advance.