extend standard edit template

9 posts, 0 answers
  1. possible
    possible avatar
    77 posts
    Member since:
    Oct 2006

    Posted 28 Oct 2007 Link to this post

    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
  2. Tim Barton
    Tim Barton avatar
    30 posts
    Member since:
    Apr 2003
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. possible
    possible avatar
    77 posts
    Member since:
    Oct 2006

    Posted 28 Oct 2007 Link to this post

    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
  5. possible
    possible avatar
    77 posts
    Member since:
    Oct 2006

    Posted 29 Oct 2007 Link to this post

    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?
  6. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 30 Oct 2007 Link to this post

    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
  7. Josh Winkler
    Josh Winkler avatar
    31 posts
    Member since:
    Nov 2007

    Posted 08 Feb 2008 Link to this post

    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!
  8. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 08 Feb 2008 Link to this post

    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
  9. Josh Winkler
    Josh Winkler avatar
    31 posts
    Member since:
    Nov 2007

    Posted 08 Feb 2008 Link to this post

    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!
  10. Josh Winkler
    Josh Winkler avatar
    31 posts
    Member since:
    Nov 2007

    Posted 08 Feb 2008 Link to this post

    sorry, I got it. Thanks for all your help.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017