Hi,
We are testing the radScheduler for ASP.NET AJAX, we need to drag a branch name and ID from the tree view and create a visit schedule for that branch. On the nodeDropping event we are creating a new appointment, can we add a new attribute to the appointment from the client side other than set_start, set_end and set_subject, like below we need to add "SiteId" as an attribute to the appointment.
var newAppointment = new Telerik.Web.UI.SchedulerAppointment();
newAppointment.set_start(startTime);
newAppointment.set_end(endTime);
newAppointment.set_subject(text);
newAppointment.set_description(siteId);
newAppointment.get_attributes().setAttribute("SiteId", siteId);
And in the server-side on post back, we will get all the appointments and update the database accordingly.
foreach (Appointment a in RadScheduler1.Appointments)
{
string strSiteID;
string strSubjectSiteId = a.Subject;
DateTime startDate = a.Start;
string siteID = a.Attributes["SiteId"];
}
There is no error thrown we set the attribute at the client side, but in server side we are getting null and this attribute count is set to 0.
We have added the CustomAttributeNames="SiteId" into the markup.
Can you please guide us how we can add a custom attribute to the a Telerik.Web.UI.SchedulerAppointment.
Thank you
Regards,
Majid