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

Setting Start/End Date

7 Answers 391 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Brian Mains
Top achievements
Rank 1
Brian Mains asked on 25 May 2010, 02:36 PM
Hello,

VisibleRangeStart and VisibleRangeEnd is readonly; is there a way to change programmatically via code these dates?

Thanks.

7 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 27 May 2010, 03:38 PM
Hi Brian,

Can you explain what exactly you need to achieve?


Peter
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
Brian Mains
Top achievements
Rank 1
answered on 27 May 2010, 06:53 PM
I want to set the visiblerangestart and visiblerangeend...  There are several reasons; one is the API in the SchedulerProviderBase always uses a RadScheduler for getting appointments and once I had a need to do a custom lookup and not based on the scheduler; I could have used the same API method, but I had to create a new method.

Additionally, I am client-side binding, but every now and then I do a RadAjaxPanel.AjaxRequest call to the server; since that does a full postback, thought I could update the start/end dates because that doesn't contain what was navigated to through the client.
0
T. Tsonev
Telerik team
answered on 28 May 2010, 03:00 PM
Hi Brian,

The VisibleRangeStart and VisibleRangeEnd properties are calculated dynamically based on the currently selected date and view type.

The dependence on RadScheduler in the provider interface is something that we definitely want to get rid of. We plan to refactor it to use an interface instead, as it should have been in the first place.

As for getting the currently selected view and date on the server on full postback - you can store them in a hidden field and access them from there.

I hope this helps.

Sincerely yours,
Tsvetomir Tsonev
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
Brian Mains
Top achievements
Rank 1
answered on 28 May 2010, 04:52 PM
OK, an interface would be great; the dependence on the RadScheduler is a pain.  That was my main reasoning.
0
JUAN
Top achievements
Rank 1
answered on 19 Jul 2010, 04:08 PM

How can I set the Start Date and End Date in the RadScheduler?
For example I want it displays from 07/15/2010 to 08/15/2010

And how can I set  only accepts one appoinment in a specific range of time?
For example: at 8:00 am only can set an appoinment and dont allow to make more.

Thank for your help.
Best regards.

Juan Carlos.

.
0
Veronica
Telerik team
answered on 22 Jul 2010, 05:13 PM
Hello JUAN,

To be able to set Start Date of the visible range you'll need to set the SelectedDate property.

For different views there are different ways to set the End Date to be 08/15/2010.

For TimelineView for example you can set  TimelineView-SlotDuration="5"  and TimelineView-NumberOfSlots="7". Please take a look at this demo to see what these two properties do.

For allowing only one appointment per specific range of time you can use this Knowledge Base article as a reference.
 
Best Regards,
Veronica Milcheva
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
Manju
Top achievements
Rank 1
answered on 25 Sep 2017, 07:19 AM

Hi,

I have a requirement where I need to show Friday as first day and following Monday as second day in a Multiday view of RAD scheduler. Is there a way where I can programmatically change the VisibleRangeStart and VisibleRangeEnd dates?

Thanks,
Manju.

Tags
Scheduler
Asked by
Brian Mains
Top achievements
Rank 1
Answers by
Peter
Telerik team
Brian Mains
Top achievements
Rank 1
T. Tsonev
Telerik team
JUAN
Top achievements
Rank 1
Veronica
Telerik team
Manju
Top achievements
Rank 1
Share this question
or