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

ReadOnly Newest version of ScheduleView

1 Answer 72 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Luigi
Top achievements
Rank 1
Luigi asked on 14 Nov 2011, 03:10 PM
Hi
We are forming a scheduleView and defining all appointments as readonly.
we have written the following code to do so:

 

 

//setting the scheduleView as readonly

 

 

 

Slot readOnlyslot = new Slot() { IsReadOnly = true };

 

readOnlyslot.Resources.Add(

 

new Resource("readOnly"));

 

 

 

ObservableCollection<Slot> _readOnlySlots = new ObservableCollection<Slot>();

 

_readOnlySlots.Add(readOnlyslot);

RadTimeLineView.SpecialSlotsSource = _readOnlySlots;


this worked great untill we changed the dll`s from version 2011.2.712.40
to version 2011.2.920.40
from some reason the readonly behavior is not affective on the new version
(when we restored the old dll`s, the behavior was back again).
Any ideas how to solve this for we still want to use the latest Telerik version
Thanks

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 17 Nov 2011, 10:02 AM
Hi Luigi,

You should also set Start and End time of the Slot and when adding the resource, set also the ResourceType:

Slot readOnlyslot = new Slot() { Start = DateTime.MinValue, End = DateTime.MaxValue, IsReadOnly = true };
readOnlyslot.Resources.Add(new Resource("readOnly", "ResourceType"));
ObservableCollection<Slot> _readOnlySlots = new ObservableCollection<Slot>();
 
_readOnlySlots.Add(readOnlyslot);
RadTimeLineView.SpecialSlotsSource = _readOnlySlots;

Hope this helps.

Kind regards,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
ScheduleView
Asked by
Luigi
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or