Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Inplace edit/create (Read 5612 times)
martmuller
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Apr 12th, 2010
Inplace edit/create
Apr 12th, 2010 at 2:49pm
Print Post  
Hi,
I would like the silverlight Calender to use the inline edit and create functionality. I've set the properties to true like this:

[code]    myCalendar.AllowInplaceCreate = true;
    myCalendar.AllowInplaceEdit = true;[/code]   

The Calendar however does work as I expected it to do. I'm not able to create and edit items in the calender. the same behaviour when I set the properties in XAML. i've also tried to set the InteractiveItemType as the SDK says I can't be null if you want to use the inline editing. No results for that either.

Can anyone point me to the right directions?

Thanks,
Mart      
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Inplace edit/create
Reply #1 - Apr 12th, 2010 at 3:12pm
Print Post  
Hi,

New items are created by typing while there is some cell selected. Do you expect to draw them with the mouse instead?

Stoyan
  
Back to top
 
IP Logged
 
martmuller
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Apr 12th, 2010
Re: Inplace edit/create
Reply #2 - Apr 12th, 2010 at 3:25pm
Print Post  
No I think that is the problem. I could not select cells or appointments in the calender...

I'm using the calendar in a ComponentOne C1Window. I found out that that caused the problem not be able to select cells. I just tried to put the control on a normal page which works fine.

Do you have a workaround for this problem maybe?

Thanks,
Mart
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Inplace edit/create
Reply #3 - Apr 12th, 2010 at 3:52pm
Print Post  
Could you check if the MouseLeftButtonDown and Up events are raised for the calendar when it's in that C1 window?
  
Back to top
 
IP Logged
 
martmuller
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Apr 12th, 2010
Re: Inplace edit/create
Reply #4 - Apr 13th, 2010 at 7:34am
Print Post  
yes, both events are raised properly
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Inplace edit/create
Reply #5 - Apr 13th, 2010 at 10:43am
Print Post  
You can download a new version of the Calendar control from the following link:

https://mindfusion.eu/_pln_trial/MindFusion.Scheduling.Silverlight.a.zip

I have made some investigations of the problem. It appears that the C1 windows system is not contained in the visual tree of the Application.RootVisual, which is something we rely on when performing internal hit-testing. As a workaround, you can set the C1 window canvas as a hit-testing root for the calendar control by assigning it to the new Calendar.RootVisual property. The following code illustrates how:

Code
Select All
C1Window w = new C1Window();
Calendar c = new Calendar();
c.RootVisual = w.Canvas;
w.Content = c;

w.ShowModal(); 


Let me know if this works.

Regards,
Meppy
  
Back to top
 
IP Logged
 
martmuller
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Apr 12th, 2010
Re: Inplace edit/create
Reply #6 - Apr 13th, 2010 at 12:43pm
Print Post  
Great, that did the trick!!

Are you shipping this new property in future releases as well?

Thanks a lot for the quick and usefull response!
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Inplace edit/create
Reply #7 - Apr 13th, 2010 at 12:51pm
Print Post  
We will include this property in the future releases. At least until a bug in the VisualTreeHelper.FindElementsInHostCoordinates method (which forced us to go through the Application.RootVisual when hit-testing) gets fixed.

Regards,
Meppy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint