My company uses Radcontrols and I'm working on a project related to RadScheduler. My task is explained below:
Notifications have to be sent to the people associated to the recurring event/appointment. My sql retrieves all information like Start date, End Date, RecurrenceRule, ...etc, Along with that it also retrieves all the users with their email id's to send reminders of the events to be held .
Using RadScheduler RadScheduler1 = new RadScheduler();
I could retrieve the first half of my information(Start date, End Date, RecurrenceRule, ...etc). Now using the following statements I tried to retrieve the extra information related to the user but I'm getting the count as 0.
The code I used is as follows:
dtRecurrence is the datatable that stores the values returned from the following sql statement
SELECT ID , Subject, Start , [End] , RecurrenceRule , RecurrenceParentID, usrID , usrEmail FROM tblEvents";
RadScheduler RadScheduler1 = new RadScheduler();
RadScheduler1.DataKeyField = "ID";
RadScheduler1.DataStartField = "Start";
RadScheduler1.DataEndField = "End";
RadScheduler1.DataSubjectField = "Subject";
RadScheduler1.DataRecurrenceField = "RecurrenceRule";
RadScheduler1.DataRecurrenceParentKeyField = "RecurrenceParentID";
RadScheduler1.DataSource = dtRecurrence;
Notifications have to be sent to the people associated to the recurring event/appointment. My sql retrieves all information like Start date, End Date, RecurrenceRule, ...etc, Along with that it also retrieves all the users with their email id's to send reminders of the events to be held .
Using RadScheduler RadScheduler1 = new RadScheduler();
I could retrieve the first half of my information(Start date, End Date, RecurrenceRule, ...etc). Now using the following statements I tried to retrieve the extra information related to the user but I'm getting the count as 0.
The code I used is as follows:
dtRecurrence is the datatable that stores the values returned from the following sql statement
SELECT ID , Subject, Start , [End] , RecurrenceRule , RecurrenceParentID, usrID , usrEmail FROM tblEvents";
RadScheduler RadScheduler1 = new RadScheduler();
RadScheduler1.DataKeyField = "ID";
RadScheduler1.DataStartField = "Start";
RadScheduler1.DataEndField = "End";
RadScheduler1.DataSubjectField = "Subject";
RadScheduler1.DataRecurrenceField = "RecurrenceRule";
RadScheduler1.DataRecurrenceParentKeyField = "RecurrenceParentID";
RadScheduler1.DataSource = dtRecurrence;
ResourceType
resourceType = new ResourceType("User");
resourceType.TextField = "usrEmail";
resourceType.KeyField = "ID";
resourceType.ForeignKeyField = "usrID";
resourceType.DataSource = dtRecurrence;
RadScheduler1.ResourceTypes.Add(resourceType);
RadScheduler1.DataBind();
Now when i tried to output the values of the user, I got an error
foreach
(Appointment recurringapt in RadScheduler1.Appointments)
{
Response.Write("Resource Text is : " + recurringapt.Resources[0].Text);
Response.Write("Resource Text is : " + recurringapt.Resources[0].Key);
}
So I did a count on the Resources and it gave me a count of 0. So my question to you is: I'm doing something wrong here. If so do let me know the correct code to go about this