We want to have month view to view full month each time we click month view button of schedulerNagivator and previous arrow and next arrow button . eg: January, February, etc. Month View includes the first day and last of the month. Each time, month view is selected, it is always a full month just as it presented in calendar.
How can we do this?
How can we do this?
10 Answers, 1 is accepted
0
Hello Ming Zhao,
Thank you for contacting us. For the moment you can try the work-around demonstrated in the attached example. We are going to fix the problem in our next release - Q1 2010 - expected at the begin of March. Please excuse us for the inconvenience.
Best wishes,
Dobry
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Thank you for contacting us. For the moment you can try the work-around demonstrated in the attached example. We are going to fix the problem in our next release - Q1 2010 - expected at the begin of March. Please excuse us for the inconvenience.
Best wishes,
Dobry
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Alex
Top achievements
Rank 1
answered on 01 Apr 2010, 06:58 AM
Is this fixed?
I am using Q1 2010 and I cannot figure out a way to show full month.
I am using Q1 2010 and I cannot figure out a way to show full month.
0
Hi Alex,
Unfortunately, we have not implemented this feature yet. although we are working on it. We will try to do our best to have for the Q2 2010 release. Please, excuse us for the inconvenience.
Kind regards,
Dobry Zranchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Unfortunately, we have not implemented this feature yet. although we are working on it. We will try to do our best to have for the Q2 2010 release. Please, excuse us for the inconvenience.
Kind regards,
Dobry Zranchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Denis Cilliers
Top achievements
Rank 1
answered on 19 Mar 2013, 05:03 PM
As this is now March 2013 have you implemented this feature yet
0
Hello Denis,
Presently this behavior is not built in RadScheduler and you should implement it with code. We will consider implementing it in a future version. I am posting here my answer to the same question that you asked in your support ticket:
The default behavior in RadScheduler is to show as first week in month view the week which is displayed in day view. You can change this behavior by setting the time interval explicitly by using the following code:
However, please note that this will break the internal logic in RadScheduler when changing to different views. If you use this code, you should add your own logic to set the start date when handling ActiveViewChanged event.
Until now we received only a few requests regarding the requested behavior and that is why we never implemented it. Now I am logging the issue in our issue tracking system and you can track it status by using the following link. We will consider implementing the feature in a future version.
I hope this helps.
Greetings,
Jack
the Telerik team
Presently this behavior is not built in RadScheduler and you should implement it with code. We will consider implementing it in a future version. I am posting here my answer to the same question that you asked in your support ticket:
The default behavior in RadScheduler is to show as first week in month view the week which is displayed in day view. You can change this behavior by setting the time interval explicitly by using the following code:
Copy Code
DateTime dtStart;
void
scheduler_ActiveViewChanging(
object
sender, SchedulerViewChangingEventArgs e)
{
RadScheduler scheduler = (RadScheduler)sender;
dtStart = scheduler.ActiveView.StartDate;
}
void
scheduler_ActiveViewChanged(
object
sender, SchedulerViewChangedEventArgs e)
{
RadScheduler scheduler = (RadScheduler)sender;
SchedulerMonthView monthView = e.NewView
as
SchedulerMonthView;
if
(monthView !=
null
)
{
DateTime dtStartMonth =
new
DateTime(dtStart.Year, dtStart.Month, 1);
int
navigationStep = scheduler.ActiveView.StartDate.Subtract(dtStartMonth).Days;
monthView.WeekCount = DateHelper.GetMonthDisplayWeeks(dtStartMonth, CultureInfo.CurrentCulture.DateTimeFormat);
RadScheduler.NavigateToPreviousViewCommand.ExecuteCommand(scheduler, NavigationStepTypes.Day, navigationStep);
}
}
However, please note that this will break the internal logic in RadScheduler when changing to different views. If you use this code, you should add your own logic to set the start date when handling ActiveViewChanged event.
Until now we received only a few requests regarding the requested behavior and that is why we never implemented it. Now I am logging the issue in our issue tracking system and you can track it status by using the following link. We will consider implementing the feature in a future version.
I hope this helps.
Greetings,
Jack
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more.
Check out all of the latest highlights.
0
Denis Cilliers
Top achievements
Rank 1
answered on 25 Mar 2013, 01:23 PM
Hi Jack
It is sorted out with Sefan so we have a workaround for now. Um the link you have here to the Public Issue Tracker does not work
Have not posted the full solution here but it is in the Support Ticker if needed As some parts came from here and others from a Support Ticket around another issue
There is a gotcha on the Scheduler if you use this code, as we are changing the way the month view dates are set. Hence when you move back to the other views you have to reset the start date to what you would expect. (i.e. Today) Else the Scheduler creeps back in time, as the Month Start date is not set to today, but the first week that has the month start in it.
it is fun to watch, but not very useful.
So a short answer would do the following
1. Determine the weeks to display for the Month
2. Change the Week Count
3. Determine the StartDate for the month (Note this might be before the actual 1st of the month)
4. Set the Month Start to the New StartDate
5. Set the Navigator Month Text to 1 Week after the Month Start (Due to Step 3 above)
For other Views
1. Set the StartDate for the other views when they are loaded to Today (normal way they work)
And we have an outlook type Month
Cool !
Thanks for the help,
It is sorted out with Sefan so we have a workaround for now. Um the link you have here to the Public Issue Tracker does not work
Have not posted the full solution here but it is in the Support Ticker if needed As some parts came from here and others from a Support Ticket around another issue
There is a gotcha on the Scheduler if you use this code, as we are changing the way the month view dates are set. Hence when you move back to the other views you have to reset the start date to what you would expect. (i.e. Today) Else the Scheduler creeps back in time, as the Month Start date is not set to today, but the first week that has the month start in it.
it is fun to watch, but not very useful.
So a short answer would do the following
1. Determine the weeks to display for the Month
2. Change the Week Count
3. Determine the StartDate for the month (Note this might be before the actual 1st of the month)
4. Set the Month Start to the New StartDate
5. Set the Navigator Month Text to 1 Week after the Month Start (Due to Step 3 above)
For other Views
1. Set the StartDate for the other views when they are loaded to Today (normal way they work)
And we have an outlook type Month
Cool !
Thanks for the help,
0
Hello Denis,
I am glad to hear that everything is OK now. Thank you for sharing those steps. The PITS link seems to be correct on my side. Maybe it is a connection issue. Could you, please check the link again.
If you have any further questions, we will be glad to help.
Greetings,
Jack
the Telerik team
I am glad to hear that everything is OK now. Thank you for sharing those steps. The PITS link seems to be correct on my side. Maybe it is a connection issue. Could you, please check the link again.
If you have any further questions, we will be glad to help.
Greetings,
Jack
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more.
Check out all of the latest highlights.
0
Peter
Top achievements
Rank 1
answered on 16 May 2013, 03:34 PM
Hi,
I also want to show the full month in month view on every arrow button click. To do so I successfully changed the "ActiveViewChanged" Event. But I can still change the scheduler weekly by using the arrow keys. How can I change this behaviour?
I was not sure if this post is can be helpful for this purpose http://www.telerik.com/community/forums/winforms/scheduler/scheduler-keydown-and-keypressed-event-issue.aspx
Thank you in advance for any suggestions.
Best,
Peter
I also want to show the full month in month view on every arrow button click. To do so I successfully changed the "ActiveViewChanged" Event. But I can still change the scheduler weekly by using the arrow keys. How can I change this behaviour?
I was not sure if this post is can be helpful for this purpose http://www.telerik.com/community/forums/winforms/scheduler/scheduler-keydown-and-keypressed-event-issue.aspx
Thank you in advance for any suggestions.
Best,
Peter
0
Hi Peter,
Yes, you can use the method mentioned in this thread to capture the up/down arrow keys, prevent the base logic and implement your own. Here is a sample:
I hope that you find it useful.
Kind regards,
Stefan
the Telerik team
Yes, you can use the method mentioned in this thread to capture the up/down arrow keys, prevent the base logic and implement your own. Here is a sample:
public
class
MyScheduler : RadScheduler
{
protected
override
bool
ProcessCmdKey(
ref
Message msg, Keys keyData)
{
if
(
this
.ActiveViewType == SchedulerViewType.Month)
{
if
(keyData == Keys.Down)
{
RadScheduler.NavigateToPreviousViewCommand.ExecuteCommand(
this
, NavigationStepTypes.Month, -1);
}
else
if
(keyData == Keys.Up)
{
RadScheduler.NavigateToPreviousViewCommand.ExecuteCommand(
this
, NavigationStepTypes.Month, 71);
}
((SchedulerMonthView)
this
.ActiveView).WeekCount = DateHelper.GetMonthDisplayWeeks(
this
.ActiveView.StartDate, CultureInfo.CurrentCulture.DateTimeFormat);
return
true
;
}
return
base
.ProcessCmdKey(
ref
msg, keyData);
}
public
override
string
ThemeClassName
{
get
{
return
typeof
(RadScheduler).FullName;
}
set
{
base
.ThemeClassName = value;
}
}
}
I hope that you find it useful.
Kind regards,
Stefan
the Telerik team
RadChart for WinForms is obsolete. Now what?
0
Peter
Top achievements
Rank 1
answered on 13 Jun 2013, 03:47 PM
Hi Stefan,
thank you for the sample. It was very useful to solve my Issue.
Best,
Peter
thank you for the sample. It was very useful to solve my Issue.
Best,
Peter