Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ShowInfoHeader (Read 3133 times)
alanmcgeough
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 34
Joined: Dec 17th, 2007
ShowInfoHeader
Nov 13th, 2009 at 12:26pm
Print Post  
Can you update the InfoHeader details after the columns have been drawn using custom Draw. I need to be able to update the ShowInfoHeader details after i have retrieved information from the database.

thanks in advance
Alan
« Last Edit: Nov 13th, 2009 at 3:04pm by alanmcgeough »  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: ShowInfoHeader
Reply #1 - Nov 16th, 2009 at 7:24am
Print Post  
Yes, you can. You will have to invoke the Calendar.Invalidate method in order to invalidate the control and cause the Draw event to be raised again.

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


I love YaBB 1G - SP1!

Posts: 34
Joined: Dec 17th, 2007
Re: ShowInfoHeader
Reply #2 - Nov 16th, 2009 at 9:30am
Print Post  
thanks for that meppy.
  
Back to top
 
IP Logged
 
alanmcgeough
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 34
Joined: Dec 17th, 2007
Re: ShowInfoHeader
Reply #3 - Nov 17th, 2009 at 9:36am
Print Post  
Hi meppy, just a quick one. I am developing a login to my resource planner. There are two types of access read and full. For people that just have read access they are only allowed to view the planner. Is there any way to lock the items from being modified\Created. if i use the enable = false then this stops the read only user from scrolling each day. I just need to stop any item being created or modified but still with the functionality of scolling through the day.
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: ShowInfoHeader
Reply #4 - Nov 17th, 2009 at 11:28am
Print Post  
You can use Calendar.ItemModifying in conjunction with Calendar.AllowInplaceCreate and Calendar.AllowInplaceEdit. Lets say that readOnly is a flag indicating the user access, then the ItemModifying event handler will contain the following line of code:

Code
Select All
e.Confirm = !readOnly; 


To prevent the items from moving around during modification you can set Calendar.DragItemsOnDisabledAreas to false.

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