FetchDate for visible date range

6 posts, 0 answers
  1. Tyler
    Tyler avatar
    32 posts
    Member since:
    Jun 2011

    Posted 11 Aug 2011 Link to this post

    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?
  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 18 Aug 2011 Link to this post

    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 >>

  3. DevCraft banner
  4. Tyler
    Tyler avatar
    32 posts
    Member since:
    Jun 2011

    Posted 18 Aug 2011 Link to this post

    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.
  5. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 18 Aug 2011 Link to this post

    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 >>

  6. Thomas Mutzl
    Thomas Mutzl avatar
    39 posts
    Member since:
    Oct 2006

    Posted 30 Jan 2012 Link to this post

    Is this property implemented in the meantime? Can't find it.

    thx,
    Thomas
  7. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 31 Jan 2012 Link to this post

    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 >>

Back to Top
DevCraft banner