Setting Start/End Date

7 posts, 0 answers
  1. Brian Mains
    Brian Mains avatar
    485 posts
    Member since:
    Oct 2008

    Posted 25 May 2010 Link to this post

    Hello,

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

    Thanks.
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 27 May 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Brian Mains
    Brian Mains avatar
    485 posts
    Member since:
    Oct 2008

    Posted 27 May 2010 Link to this post

    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.
  5. T. Tsonev
    Admin
    T. Tsonev avatar
    2772 posts

    Posted 28 May 2010 Link to this post

    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.
  6. Brian Mains
    Brian Mains avatar
    485 posts
    Member since:
    Oct 2008

    Posted 28 May 2010 Link to this post

    OK, an interface would be great; the dependence on the RadScheduler is a pain.  That was my main reasoning.
  7. JUAN
    JUAN avatar
    6 posts
    Member since:
    Oct 2008

    Posted 19 Jul 2010 Link to this post

    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.

    .
  8. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 22 Jul 2010 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017