Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ResourceView: Possible bug when item with custom type is cloned by the user. (Read 2372 times)
Achim
Junior Member
**
Offline


MindFusion rocks!

Posts: 70
Location: Bayreuth, Germany
Joined: Jun 28th, 2012
ResourceView: Possible bug when item with custom type is cloned by the user.
Oct 26th, 2012 at 8:07am
Print Post  
Hi there,

I am using the ResourceView with a custom Item type (derived from Appointment). Everything works fine until I am going to clone an item in the ResourceView holding the shift key down while clicking on the item. A new item is created but it seems to be of type Appointment. I've set the interactive item type to

Code
Select All
calendarControl.InteractiveItemType = typeof (MarkableAppointment); 



Maybe this is a bug or do I have to setup something I don't know?

Best regards
Achim
  
Back to top
WWW  
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: ResourceView: Possible bug when item with custom type is cloned by the user.
Reply #1 - Oct 26th, 2012 at 8:44am
Print Post  
Hi,

Have you overridden the Appointment.Clone method? You can have a look on how to do it properly in Tutorial #4 (the Interactive cloning section).

Regards,
Meppy
  
Back to top
 
IP Logged
 
Achim
Junior Member
**
Offline


MindFusion rocks!

Posts: 70
Location: Bayreuth, Germany
Joined: Jun 28th, 2012
Re: ResourceView: Possible bug when item with custom type is cloned by the user.
Reply #2 - Oct 26th, 2012 at 10:41am
Print Post  
Hi Meppy,

thank you very much - that's exactly what I needed.

Best regards
Achim
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint