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

extend standard edit template

8 Answers 166 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
possible
Top achievements
Rank 1
possible asked on 28 Oct 2007, 11:51 AM
Hi..

I want to extend scheduler template but keep the orginal one. Is it possible to only add a few fields to template and have on edit page orginal edit form + my controls?

If this is not possible/implemented yet, can you send me currently used templates?

Regards

8 Answers, 1 is accepted

Sort by
0
Tim Barton
Top achievements
Rank 2
answered on 28 Oct 2007, 02:51 PM
0
possible
Top achievements
Rank 1
answered on 28 Oct 2007, 07:28 PM
Hi,

Thanks for reply, i had seen this page before you gave me a link, but i need to extend edit template with big ascx, which is too complex too make it work in that way ;/

Regards
0
possible
Top achievements
Rank 1
answered on 29 Oct 2007, 02:36 PM
Hi,

It's me again. I'm trying to implement standard template by myself but i have a problem with recurrency appointments.

I have such code:

RecurrenceRange range = new RecurrenceRange(); 
                    range.Start = e.Container.Appointment.Start; 
                    if (rbCount.Checked) {  
                        int repeatCount = 0; 
                        if (int.TryParse(txtRepeatC.Text,out repeatCount)){ 
                            range.MaxOccurences = repeatCount; 
                        } 
                    } 
                    else if (rbDate.Checked && rdpDate.SelectedDate.HasValue) 
                    { 
                        range.RecursUntil = rdpDate.SelectedDate.Value; 
                    } 
 
                    range.EventDuration = e.Container.Appointment.End - e.Container.Appointment.Start; 
 
                    int reccurencyDelay = 1; 
                    int.TryParse(txtReccDelay.Text, out reccurencyDelay); 
 
                    e.Container.Appointment.RecurrenceState = RecurrenceState.Master; 
 
                    RecurrenceRule rule = null
                    switch (rbReccurency.SelectedValue) {  
                        case "1"
                            rule = new HourlyRecurrenceRule(reccurencyDelay, range); 
                            break
                        case "2"
                            rule = new DailyRecurrenceRule(reccurencyDelay, range); 
                            break
                        case "3"
                            rule = new WeeklyRecurrenceRule(reccurencyDelay, RecurrenceDay.None, range); 
                            break
                        case "4"
                            rule = new MonthlyRecurrenceRule(e.Container.Appointment.Start.Day, reccurencyDelay, range); 
                            break
                        case "5"
                            rule = new YearlyRecurrenceRule(RecurrenceMonth.None, reccurencyDelay, range); 
                            break
                    } 
 
                    if (rule != null
                    { 
                        foreach (DateTime occurrence in rule.Occurrences) 
                        { 
                             
                        } 
                    } 

Its under radscheduler application command. Am I close to correct implementation or am i doing this totally wrong?
0
Peter
Telerik team
answered on 30 Oct 2007, 04:25 PM
Hello Tomasz,

You are on the right track. Do you experience any particular problems? Please, explain what exactly you want to achieve and send us athe complete page with the code-behind file.  


Kind regards,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Josh Winkler
Top achievements
Rank 1
answered on 08 Feb 2008, 04:42 PM
I have two other columns that I need to add to the scheduler edit page. I am using .net VB and just need to add notes and Interviewer to the edit page. These details are stored in the same table as the appointment details. Please let me know the easiest way to grab those two details so that I can add them to the edit form. I have tried numrous options that i have found on the site to no avail. Please let me know. Thanks much!
0
Peter
Telerik team
answered on 08 Feb 2008, 04:51 PM
Hello Josh,

You can use Custom Attributes for this. Please, review the online example and let us know if you have any questions.


Cheers,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Josh Winkler
Top achievements
Rank 1
answered on 08 Feb 2008, 06:10 PM
that worked. my only other question is that these items that are loaded need to be based on the appointment selected so how do I get the appointment ID of the selected appontment? I tried the @ID but received an error. Please let me know and thanks for the fast response on the last post!
0
Josh Winkler
Top achievements
Rank 1
answered on 08 Feb 2008, 06:23 PM
sorry, I got it. Thanks for all your help.
Tags
Scheduler
Asked by
possible
Top achievements
Rank 1
Answers by
Tim Barton
Top achievements
Rank 2
possible
Top achievements
Rank 1
Peter
Telerik team
Josh Winkler
Top achievements
Rank 1
Share this question
or