This is a migrated thread and some comments may be shown as answers.

Customized advanced templete issue

4 Answers 99 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
vamshi
Top achievements
Rank 1
vamshi asked on 21 Nov 2008, 06:02 PM
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.

4 Answers, 1 is accepted

Sort by
0
vamshi
Top achievements
Rank 1
answered on 24 Nov 2008, 03:51 PM
any Idea?
0
Peter
Telerik team
answered on 25 Nov 2008, 09:58 AM
Hello vamshi,

RadScheduler's rendering mechanism has changed with Q3 2008. Please, refer to this updated kb article for a solution to your question:

http://www.telerik.com/support/kb/aspnet-ajax/scheduler/how-to-access-controls-in-the-advanced-form.aspx


All the best,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
vamshi
Top achievements
Rank 1
answered on 01 Dec 2008, 04:35 PM
Hello Peter,

Thanks for the response.

I have gone through the kb article but could not find a solution to my problem. It explains about form creating, but I want data from the client side in Appointment Update event (when user clicks on Update Link Button in advanced edit templete) like shown in the code in my previous post above.


Thanks,
Vamshi.
0
Peter
Telerik team
answered on 02 Dec 2008, 09:07 AM
Hello Vamshi,

Thanks for clarifying. In this case you could use the Customizing the Advanced Template example and this help topic. The user controls can be found in your local installation of Telerik.Web.UI ->
Live Demos\Scheduler\Examples\AdvancedFormTemplate\DefaultTemplates

Basically, the idea is to add any additional information to the appointment either as a resource or as custom attributes.


All the best,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
vamshi
Top achievements
Rank 1
Answers by
vamshi
Top achievements
Rank 1
Peter
Telerik team
Share this question
or