Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Resource view help (Read 3986 times)
andreagiunta
YaBB Newbies
*
Offline



Posts: 4
Joined: Oct 21st, 2009
Resource view help
Oct 21st, 2009 at 8:54am
Print Post  
Hi, i'm new in this forum.
I've worked in this few days with planner.net especially in resourceview mode.

Anyone know what event i've to handle when I select a timespan for a resource?(click on a date and with mouse clicked down select a time span for a resource) thank you.
  

Vi Veri Veniversum Vivus Vici
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Resource view help
Reply #1 - Oct 21st, 2009 at 9:11am
Print Post  
Hi,

Try handling the Calendar.Selection.Changed event. The following example illustrates how:

Code
Select All
calendar1.Selection.Changed += new EventHandler(Selection_Changed); 


The calendar1 variable identifies the Calendar control. The event argument does not supply information about the new selection. You have to inspect the Selection.Ranges property in order to obtain the selected interval.

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



Posts: 4
Joined: Oct 21st, 2009
Re: Resource view help
Reply #2 - Oct 21st, 2009 at 3:40pm
Print Post  
mmm thankyou
but this is not "still" working.
  

Vi Veri Veniversum Vivus Vici
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Resource view help
Reply #3 - Oct 22nd, 2009 at 5:57am
Print Post  
What exactly isn't working? The event is not getting raised or something else?

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



Posts: 4
Joined: Oct 21st, 2009
Re: Resource view help
Reply #4 - Oct 22nd, 2009 at 6:00am
Print Post  
no the event is raised, and it's working.
I'm unable to retrieve data about what resource is selected.
  

Vi Veri Veniversum Vivus Vici
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Resource view help
Reply #5 - Oct 22nd, 2009 at 7:20am
Print Post  
You can obtain a reference to the resource related to the current selection through the Selection.Contact, Selection.Location, Selection.Resource or Selection.Task properties, depending on the type of resources you are grouping by. For example, if you are grouping by contacts, you can obtain the contact whose cells are being selected through Selection.Contact.

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



Posts: 4
Joined: Oct 21st, 2009
Re: Resource view help
Reply #6 - Oct 22nd, 2009 at 8:01am
Print Post  
OMG i'm a stupid
Thank you.
now i've only to find one way to create a appointment on resource view selection changed.

but not now  Grin

thank you
  

Vi Veri Veniversum Vivus Vici
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint