Is it possible to customize Appointment Creation?
e.g. Can I implement something akin to IEditableCollectionView? (The control does not appear to use this interface)
What I am specifically wanting to do, to change the way "new" appointments are created. Rather than adding them to the collection when you first "create" them, I would rather add them to the collection once they are finalised.
e.g.
So I would like to use something like similar to an IEditableCollectionView's AddNew, IsAddingNew, CancelNew and CommitNew ; where Appointments are only added to the collection, at CommitNew
e.g. Can I implement something akin to IEditableCollectionView? (The control does not appear to use this interface)
What I am specifically wanting to do, to change the way "new" appointments are created. Rather than adding them to the collection when you first "create" them, I would rather add them to the collection once they are finalised.
e.g.
So I would like to use something like similar to an IEditableCollectionView's AddNew, IsAddingNew, CancelNew and CommitNew ; where Appointments are only added to the collection, at CommitNew
5 Answers, 1 is accepted
0
Hi Alex,
RadScheduleView is using ICollectionView interface internally. If your source collection is ICollectionView then we will use it. If not we will create collection view for your source and use it.
RadScheduleView support the exact scenario that you describe - you call scheduleView.CreateNew method when you want to add new appointment, then call Commit or Cancel method. If your source collection is ObservableCollection you will see that create new add it to source collection and Cancel - removes it.
Let us know if you need more details.
Regards,
Hristo
the Telerik team
RadScheduleView is using ICollectionView interface internally. If your source collection is ICollectionView then we will use it. If not we will create collection view for your source and use it.
RadScheduleView support the exact scenario that you describe - you call scheduleView.CreateNew method when you want to add new appointment, then call Commit or Cancel method. If your source collection is ObservableCollection you will see that create new add it to source collection and Cancel - removes it.
Let us know if you need more details.
Regards,
Hristo
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
Alex
Top achievements
Rank 1
answered on 04 Jul 2011, 01:02 AM
Hi Hristo,
I've tried using a few different collections but I've always noticed the same results. I tried with a normal ObservableCollection, and custom ObservableCollection that implemented ICollectionView, and a PagedCollectionView (which is an ICollectionView). (I've also tried implementing IEditableCollectionView but the control does not seem to use that interface)
The result I am after is:
1. On scheduler.CreateNew (or on double click) it should Create the appointment (But not add it to the collection)
2a. If Commit, it should then add it to the collection
2b. If Cancel, nothing
I've tried using a few different collections but I've always noticed the same results. I tried with a normal ObservableCollection, and custom ObservableCollection that implemented ICollectionView, and a PagedCollectionView (which is an ICollectionView). (I've also tried implementing IEditableCollectionView but the control does not seem to use that interface)
The result I am after is:
1. On scheduler.CreateNew (or on double click) it should Create the appointment (But not add it to the collection)
2a. If Commit, it should then add it to the collection
2b. If Cancel, nothing
0
Hi Alex,
I think that all implementations of ICollectionView works by adding the new item into the source collection and then on Cancel - remove it, or on Commit - nothing or Remove and Add it so that it ca go in the correct groups.
I guess that it could be possible to implement custom ICollectionView but this will not be an easy task.
The workflow for wrapping source collection in collectionView is as follow: if your source collection implement ICollctionViewFactory then we call factory.CreateView, if not then if your source collection is ICollectionView - we use it directly else we create CollectionViewSource and get its View property.
Best wishes,
Hristo
the Telerik team
I think that all implementations of ICollectionView works by adding the new item into the source collection and then on Cancel - remove it, or on Commit - nothing or Remove and Add it so that it ca go in the correct groups.
I guess that it could be possible to implement custom ICollectionView but this will not be an easy task.
The workflow for wrapping source collection in collectionView is as follow: if your source collection implement ICollctionViewFactory then we call factory.CreateView, if not then if your source collection is ICollectionView - we use it directly else we create CollectionViewSource and get its View property.
Best wishes,
Hristo
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
Alex
Top achievements
Rank 1
answered on 04 Jul 2011, 08:19 AM
(Just to confirm, are you refering to System.ComponentModel.ICollectionView?)
ICollectionView does not actually expose any methods or interface for creating objects - so I suspect the control it self is adding the appointments to the collection.
ICollectionView does not actually expose any methods or interface for creating objects - so I suspect the control it self is adding the appointments to the collection.
0
Hello Alex,
Yes I'm refering to System.ComponentModel.ICollectionView.
In Silverlight (and in WPF) all CollectionViews implements both ICollectionView and IEditableCollectionView.
In Silverlight there are ListCollectionView (internal class) and PagedCollectionView in System.Windows.Data assembly and both implement ICollectionView and IEditableCollectionView.
Kind regards,
Hristo
the Telerik team
Yes I'm refering to System.ComponentModel.ICollectionView.
In Silverlight (and in WPF) all CollectionViews implements both ICollectionView and IEditableCollectionView.
In Silverlight there are ListCollectionView (internal class) and PagedCollectionView in System.Windows.Data assembly and both implement ICollectionView and IEditableCollectionView.
Kind regards,
Hristo
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items