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

Adding custom fields to the Default Advanced Template Form

6 Answers 224 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Fabian Agudelo
Top achievements
Rank 1
Fabian Agudelo asked on 18 Jan 2008, 11:20 PM
I love your Scheduler because it makes things so simple. With that in mind, I'd like to keep the default appointment form for the scheduler (so I don't have to rewrite all the controls in a template, such as Recurrence controls). But I was wondering if there was a way to add controls to the Advanced Insert/Edit and then retrieve their values once the Appointment is added/updated?

To be more specific, here's 2 examples:

1) I want to add a checkbox for "Remind Me" to each appointment. Then IF (and only if) they check it, I add a new row to a seperate table in the database.

2) I want to add an extra textbox at the top so there is "Subject" and "Body" to each appointment. How can I add this and retrieve the value later?

Thank You! And keep up the great work!

6 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 21 Jan 2008, 11:14 AM
Hello Fabian,

Please refer to the Templates online example. The code resposible for accessing the checkbox in the advanced form is:
 protected void RadScheduler1_AppointmentCommand(object sender, AppointmentCommandEventArgs e)  
        {  
            if(e.CommandName == "Insert")  
            {  
                CheckBox repeatCheck = (CheckBox)e.Container.FindControl("RepeatCheckBox");  
          

Should you have any other questions, please do not hesitate to contact us.



Greetings,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Paul
Top achievements
Rank 1
answered on 22 Jan 2008, 03:10 PM
Hi,

I am trying to implement a similar situation.  I want to add a few controls to the advanced edit/insert templates.

The online example you provided is helpful.  However, in that example, the Recurrence controls from the default advanced template are lost when a custom advanced template is specified.  Is there a way to dynamically add a few controls (like a drop down) to the advanced template, without losing the recurrence controls?

Thanks,
-Paul
0
Fabian Agudelo
Top achievements
Rank 1
answered on 22 Jan 2008, 04:54 PM
I agree with Paul. I just want to add a few controls to the EXISTING template.

Or, better yet, are you able to provide the code (ASPX declarative and C# code handler) used by the default template to add/edit and bind to recurrences?
0
Peter
Telerik team
answered on 23 Jan 2008, 09:00 AM
Hello Guys,

Thank you for this discussion. We have had such requests before, so it is in our to-do list for the next Q1 2008 release to allow customization of existing templates. Once this feature is available, it will be really easy to achieve what you need. You will be able to customize templates with resources and recurrence.


All the best,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
eric knight
Top achievements
Rank 1
answered on 15 Apr 2008, 11:07 PM
Any status on a release date for this? I need to do something similar as well.
0
Peter
Telerik team
answered on 16 Apr 2008, 07:33 AM
Hi Eric,

Yes, this functionality is already available. Please refer to this forum thread (reply dated: 3/26/2008 6:09:55 AM).


Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
Fabian Agudelo
Top achievements
Rank 1
Answers by
Peter
Telerik team
Paul
Top achievements
Rank 1
Fabian Agudelo
Top achievements
Rank 1
eric knight
Top achievements
Rank 1
Share this question
or