Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Some questions about planner control features (Read 2356 times)
Abhi211182
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Jun 8th, 2007
Some questions about planner control features
Jun 8th, 2007 at 8:19am
Print Post  
Hi,

I have some questions about the planner.net control. I want to know following points about the 'Timetable' view of planner.net control.

Is it possible to

1) navigate from one appointment item to other item via keyboard.

2) change the color of the MoveBand of item.

3) have a footer (text) for each column and each day.

4) set different colors of cells. e.g. From 8 AM to 10 Am, green and From 10 Am to 12 Am, red etc.

5) define holidays (represented in different color day) and also posibility to enable/disable creation of items(appointments) on holidays.

6) set scrollbar to first viewable item in the control.

7) copy and paste items of day(s) to other day(s).

Thanks,
Abhjeet
  

Thanks,&&Abhijeet
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Some questions about planner control features
Reply #1 - Jun 8th, 2007 at 9:05am
Print Post  
Hi Abhjeet,

Here are the short answers of your questions:

>> 1) navigate from one appointment item to other item via keyboard.

There is no built-in functionality that enables you to do that. However, you can implement this by handling the appropriate key event in your application and moving the selection from one item to the next according certain criteria.

>> 2) change the color of the MoveBand of item.

Use the Style.FillColor property of the Style object associated with the individual item.

>> 3) have a footer (text) for each column and each day.

We have recently added a custom-drawn area for each column, which is displayed below the all-day header and above the column cells. You can enable this area by settings TimetableSettings.ShowInfoHeader to State.Enabled. We can add similar area at the bottom of each column if this is necessary.

>> 4) set different colors of cells. e.g. From 8 AM to 10 Am, green and From 10 Am to 12 Am, red etc.

You can do that via custom drawing. You can refer to the Zones sample to see how you can color various cells using custom drawing.

>> 5) define holidays (represented in different color day) and also posibility to enable/disable creation of items(appointments) on holidays.

You can also use the Zones sample to check how to control (prevent) item creation at particular dates/times.

>> 6) set scrollbar to first viewable item in the control.

You can use code similar to the following:

Code
Select All
DateTime first = calendar.GetFirstDate();
DateTime last = calendar.GetLastDate();
ItemCollection allViewableItems = calendar.Schedule.GetAllItems(first, last);

if (allViewableItems.Count > 0)
    calendar.EnsureVisible(allViewableItems[0]); 



>> 7) copy and paste items of day(s) to other day(s).

Check the Clipboard sample to see how you can do this.


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


I love YaBB 1G - SP1!

Posts: 2
Joined: Jun 8th, 2007
Re: Some questions about planner control features
Reply #2 - Jun 8th, 2007 at 10:21am
Print Post  
Hi Meppy,

Thanks for the really quick reply  Smiley

The answers were satisfying for me.

But some more questions.

1) How can I add some text for each column in InfoHeader?

2) and about my question "copy and paste items of day(s) to other day(s) ",  I was asking about selecting more than one day at one go and paste the item of these days to other days?
But anyway that I will have to do on my own Sad.

4) I can show current time in timeline. But how can i show current day?

3) Is there any ASP.NET planner control in queue?

  

Thanks,&&Abhijeet
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Some questions about planner control features
Reply #3 - Jun 8th, 2007 at 11:16am
Print Post  
Hi Abhjeet,

>> 1) How can I add some text for each column in InfoHeader?

As I previously mentioned, the info header was just recently added, so the only thing this header autmatically supports as of yet, is setting its background color. You can however perform custom drawing of this info header by setting Calendar.CustomDraw to CustomDrawElement.TimetableInfoHeader, then handling the Calendar.Draw event.

>> 2) and about my question "copy and paste items of day(s) to other day(s) ",  I was asking about selecting more than one day at one go and paste the item of these days to other days? 
But anyway that I will have to do on my own Sad.


As far I understand it, you want to select a time range and copy all items in that range, then being able to paste these items in another day. The Clipboard sample is doing exactly this, except its for a single item. You can collect all items in a time range by calling Schedule.GetAllItems.

>> 4) I can show current time in timeline. But how can i show current day?

This is not currently possible, unless you use custom drawing. The calendar element that corresponds to the timetable header is CustomDrawElement.TimetableColumnHeader.

>> 3) Is there any ASP.NET planner control in queue?

Yes, we have planned to create a web version of Planner.NET. Its realase date cannot yet be predicted however.

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