Hi. I have a table in my database to register the dates one person is available in the office. In this table I have the weekday (Monday, etc) and start and end time with no specific date.
How i can get this data to my RadScheduler programatically because I filling it using ObjectDataSource via code?
TIA
Yamil
How i can get this data to my RadScheduler programatically because I filling it using ObjectDataSource via code?
TIA
Yamil
5 Answers, 1 is accepted
0
Hello Yamil,
Please, see the Binding To Generic List example. The code that creates appointments dynamically is:
All the best,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Please, see the Binding To Generic List example. The code that creates appointments dynamically is:
| private void InitializeResources() |
| { |
| ResourceType resType = new ResourceType("User"); |
| resType.ForeignKeyField = "UserID"; |
| RadScheduler1.ResourceTypes.Add(resType); |
| RadScheduler1.Resources.Add(new Resource("User", 1, "Alex")); |
| RadScheduler1.Resources.Add(new Resource("User", 2, "Bob")); |
| RadScheduler1.Resources.Add(new Resource("User", 3, "Charlie")); |
| } |
All the best,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Yamil
Top achievements
Rank 1
answered on 05 Jun 2008, 06:43 PM
Thank you very much for your answer but It was not what I'm looking for.
I ned to create the recurrent object from y database and I do not save the same way as it is expected for the RadScheduler.
I found the MonthlyRecurrenceRule and RecurrenceRuleConverter classes that i think could fit in what I have to do
But I glad to hear some tips, anyway...!
I ned to create the recurrent object from y database and I do not save the same way as it is expected for the RadScheduler.
I found the MonthlyRecurrenceRule and RecurrenceRuleConverter classes that i think could fit in what I have to do
But I glad to hear some tips, anyway...!
0
Yamil
Top achievements
Rank 1
answered on 06 Jun 2008, 07:34 PM
Where do I can find the complete definition for a recurrence rule. There is an example in the xml provider sample as :
<![CDATA[
DTSTART:20070330T060000Z
DTEND:20070330T070000Z
RRULE:FREQ=DAILY;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR;
]]>
How to specify the range (End Date, End after x ocurrences and End by this date) ?
Best Regards
<![CDATA[
DTSTART:20070330T060000Z
DTEND:20070330T070000Z
RRULE:FREQ=DAILY;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR;
]]>
How to specify the range (End Date, End after x ocurrences and End by this date) ?
Best Regards
0
Hi Yamil,
The recurrence rule is stored in iCal format, specifically the RRULE property. You can read the RFC specification, but I find this definition a bit easier to understand - http://www.kanzaki.com/docs/ical/rrule.html
You can also experiment with the RecurrenceRule classes and see the results.
I hope this helps.
Greetings,
Dimitar Milushev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
The recurrence rule is stored in iCal format, specifically the RRULE property. You can read the RFC specification, but I find this definition a bit easier to understand - http://www.kanzaki.com/docs/ical/rrule.html
You can also experiment with the RecurrenceRule classes and see the results.
I hope this helps.
Greetings,
Dimitar Milushev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Yamil
Top achievements
Rank 1
answered on 09 Jun 2008, 03:19 PM
Thank you veru much for your help and support.
This document give me more information about what I wan to do...
This document give me more information about what I wan to do...