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

FetchDate for visible date range

5 Answers 69 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tyler
Top achievements
Rank 1
Tyler asked on 11 Aug 2011, 09:01 PM
When FetchDate() is called the startDate and endDate params are only for the current month and not the Calendars visible date range
Is there a property somewhere to fix this?

5 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 18 Aug 2011, 08:03 AM
Hi Tyler,

FetchData is called with the Calender.DisplayedDate info so this should give you always the currently displayed date in the calender. Is there are case when this is no synced?

Regards, Valentin.Stoychev
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
Tyler
Top achievements
Rank 1
answered on 18 Aug 2011, 08:25 AM
The problem is that the date range passed into FetchDate does not include visible days of the previous and next month. Right now I'm subtracting 10 days from the startdate and adding 10 to the enddate parameters inside of FetchDate so that appointments will be rendered for all visible days. I could calculate this more accurately but I feel this should be the default behavior of the control.
0
Valentin.Stoychev
Telerik team
answered on 18 Aug 2011, 08:29 AM
Hello Tyler,

This is a valid argument. We will add a new property for this case so it includes the extended days too.

Thanks for pointing it out! I've updated your Telerik points.

Regards, Valentin.Stoychev
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
Thomas
Top achievements
Rank 1
answered on 30 Jan 2012, 11:51 PM
Is this property implemented in the meantime? Can't find it.

thx,
Thomas
0
Valentin.Stoychev
Telerik team
answered on 31 Jan 2012, 02:56 PM
Hello Thomas,

No, this is not implemented. You can use the solution provided by Tyler and to fetch data for the previous and next 10 days.

Greetings, Valentin.Stoychev
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Calendar
Asked by
Tyler
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Tyler
Top achievements
Rank 1
Thomas
Top achievements
Rank 1
Share this question
or