Hi,
I have customized advanced edit template for my application. On Update click I'm not able to get the data from the drop down selected and the textbox:
Below are FormCreated and AppointmentUpdated methods.
protected void RadScheduler1_FormCreated(object sender, Telerik.Web.UI.SchedulerFormCreatedEventArgs e)
{
if ((e.Container.Mode == SchedulerFormMode.AdvancedEdit) || (e.Container.Mode == SchedulerFormMode.AdvancedInsert))
{
//List of Labs based on the User
DropDownList UserPI = (DropDownList)e.Container.FindControl("PIList");
UserPI.DataSource = userData.GetLabByID(Request.Cookies["userInfo"]["UserID"].ToString());
UserPI.DataTextField = "LabName";
UserPI.DataValueField = "LabID";
UserPI.DataBind();
TextBox NoOfPlatesTextbox = (TextBox)e.Container.FindControl("NoOfPlates");
}
}
On Update I want to get the DropDown selected value and textBox text
protected void RadScheduler1_AppointmentUpdated(object sender, Telerik.Web.UI.AppointmentUpdateEventArgs e)
{
//This does not work
pcrData.selectedPI = UserPI.SelectedItem.Value.ToString();
pcrData.numberOfPlates = NoOfPlatesTextbox.Text;
}
Is there any work around??
Thanks,
Vamshi.
I have customized advanced edit template for my application. On Update click I'm not able to get the data from the drop down selected and the textbox:
Below are FormCreated and AppointmentUpdated methods.
protected void RadScheduler1_FormCreated(object sender, Telerik.Web.UI.SchedulerFormCreatedEventArgs e)
{
if ((e.Container.Mode == SchedulerFormMode.AdvancedEdit) || (e.Container.Mode == SchedulerFormMode.AdvancedInsert))
{
//List of Labs based on the User
DropDownList UserPI = (DropDownList)e.Container.FindControl("PIList");
UserPI.DataSource = userData.GetLabByID(Request.Cookies["userInfo"]["UserID"].ToString());
UserPI.DataTextField = "LabName";
UserPI.DataValueField = "LabID";
UserPI.DataBind();
TextBox NoOfPlatesTextbox = (TextBox)e.Container.FindControl("NoOfPlates");
}
}
On Update I want to get the DropDown selected value and textBox text
protected void RadScheduler1_AppointmentUpdated(object sender, Telerik.Web.UI.AppointmentUpdateEventArgs e)
{
//This does not work
pcrData.selectedPI = UserPI.SelectedItem.Value.ToString();
pcrData.numberOfPlates = NoOfPlatesTextbox.Text;
}
Is there any work around??
Thanks,
Vamshi.