This is a migrated thread and some comments may be shown as answers.

Setting visible date range in Monthview

10 Answers 354 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
esw00
Top achievements
Rank 1
esw00 asked on 09 Jan 2012, 04:49 PM
How would I go about setting the current week as the first week that appears on the scheduler in monthview?  For example, today is January 9th, 2011.  I'd like the scheduler to display the current week as the first calendar row, so that the dates displayed begin at January 8th and end at Feb 11.  Essentially, I'd like to always see a full month of appointments ahead.

I found a partial solution here which sets the start week in the correct place, but it simply eliminates rows rather than adjusting the range.  The drawback to this approach is that by the end of the month, you'd have a calendar with only one week on it. 

10 Answers, 1 is accepted

Sort by
0
Ivana
Telerik team
answered on 12 Jan 2012, 02:05 PM
Hello Eric,

The idea of MonthView is to show the current month. Therefore, the requested scenario is not a currently supported by RadScheduler control. You could, however, still use the workaround suggested in the forum post you have pointed out. 

All the best,
Ivana
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
esw00
Top achievements
Rank 1
answered on 12 Jan 2012, 02:36 PM
Unfortunately, as I indicated in my post, the workaround does not solve the problem.  The issue is that I need to *always* see the next 30 days of appointments.  Thanks for your response, though. 
0
Casey
Top achievements
Rank 1
answered on 14 Aug 2012, 06:21 PM
I think that it would be a great improvement to the RadScheduler if you could specify what date you want the month view to start at, or even have a "Custom View" in addition to the views already provided. 

That Custom View would enable the possibility to start showing the 5 weeks based off of a Week beginning/ending date selected by the user, for example, the user selects 8/12/2012. The would see from 8/12/2012 to 9/15/2012. I would think that this would meet a lot of customers' needs for a "month view" control, instead of limiting the selection to month, IE for August it would start on 07/29/2012 and end on 09/01/2012. 

Please look into the possibility of adding this feature.

Thanks!
Casey
0
Ivana
Telerik team
answered on 15 Aug 2012, 10:15 AM
Hi Casey,

This might be a good enhancement to the current set of functionalities provided for RadScheduler indeed. I will forward this for further investigation to our development team. If it turns out that it can be achieved you may see it in the feature released of the control.

Regards,
Ivana
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Kevin
Top achievements
Rank 1
answered on 07 Nov 2012, 06:58 PM
I was wondering on the monthview for a current month (like August 2012), could you show me in code behind how to get the 1st date of that month and the last date of that month? (8/1/2012 and 8/31/2012) Example: radscheduler1.selecteddate.mindate, something like this?  I needed it in my query string to pull schedules from my database as parameters.  thanks
0
Boyan Dimitrov
Telerik team
answered on 12 Nov 2012, 02:15 PM
Hello Kevin,

I would like to recommend you to use the following approach to achieve the described functionality:

protected void Page_Load(object sender, EventArgs e)
   {
       if (RadScheduler1.SelectedView == SchedulerViewType.MonthView)
       {
           DateTime currentDate = RadScheduler1.SelectedDate;
           int days = DateTime.DaysInMonth(currentDate.Year, currentDate.Month);
           DateTime firstDate = new DateTime(currentDate.Year, currentDate.Month, 1);
           DateTime lastDate = new DateTime(currentDate.Year, currentDate.Month, days);
       }
   }

Hope that this will lead you into the right direction.

Regards,
Boyan Dimitrov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
adnan
Top achievements
Rank 2
answered on 06 Apr 2017, 05:47 PM

is there any update on custom view where we can start month view from today's date?

is there any way where we can show more than 5 weeks in month view

0
Vessy
Telerik team
answered on 11 Apr 2017, 03:48 PM
Hi adnan,

I am afraid that currently RadScheduler does support custom views and does not have any built-in functionality for controlling the weeks count/start date programmatically.

Optionally, you can submit the requirements for them into our feedback portal so we can collect the overall interest over such functionality and prioritize them further:
https://feedback.telerik.com/Project/108/Feedback/List/Feature%20Request


Regards,
Vessy
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
adnan
Top achievements
Rank 2
answered on 26 May 2017, 11:55 AM

Hi Ivana,

 

 is there any update on custom view for RadScheduler month view. where we can pick custom starting week.

Thanks

Adnan

0
Vessy
Telerik team
answered on 31 May 2017, 11:01 AM
Hi Adnan,

RadScheduller still does not support custom month views as a feature request for such functionality has never been sumbitted in our portal.

Please, feel free to submit a request, describing the needed functionalty and we will consider its implementation depending on the popularity of the item:
https://feedback.telerik.com/Project/108


Regards,
Vessy
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Scheduler
Asked by
esw00
Top achievements
Rank 1
Answers by
Ivana
Telerik team
esw00
Top achievements
Rank 1
Casey
Top achievements
Rank 1
Kevin
Top achievements
Rank 1
Boyan Dimitrov
Telerik team
adnan
Top achievements
Rank 2
Vessy
Telerik team
Share this question
or