protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e)
{
RadScheduler1.HideEditForm();
RadScheduler1.Rebind();
// create the default appointment and times
Appointment app = new Appointment();
string sStart = DateTime.Now.ToShortDateString();
DateTime dStart = DateTime.Parse(sStart);
dStart = dStart.AddDays(1);
app.Start = dStart;
app.End = dStart.AddHours(2);
string[] subjects = e.CommandArgument.ToString().Split("|".ToCharArray());
string theSubject = string.Empty;
for (int i = 0; i < subjects.Length; i++)
{
switch (i)
{
case 1:
theSubject = theSubject + "Name(s):" + System.Environment.NewLine;
break;
case 4:
theSubject = theSubject + "Address:" + System.Environment.NewLine;
break;
case 11:
theSubject = theSubject + "Revision: ";
break;
default:
break;
}
if (subjects[i].Trim() != "")
{
theSubject = theSubject + subjects[i] + System.Environment.NewLine;
.......................
}
app.Subject = theSubject;
app.Attributes["Orders"] = "company";
RadScheduler1.ShowAdvancedEditForm(app);
}
But this does not set teh default drop list box for the custom resource of "Orders". The selected value is "-", and all the possible choices show up.
How would I go about accomplishing this?
Thanks,
Jeff