24 hour days, click and drag, JS error

4 posts, 0 answers
  1. Michael
    Michael avatar
    23 posts
    Member since:
    Jan 2012

    Posted 08 Mar 2012 Link to this post

    I want the default view to be 24 hours on the week view. I was told to set  : 

    DayStartTime="00:00:00" DayEndTime="23:59:59"  


    This works, when the page is loaded I now see the entire day. 

    The problem now, if I create an appointment by click+dragging then hitting enter, I get a js error if I pass 4pm. 

    If I click the link on the bottom "Show 24 hours..." I can drag past 4pm and it works fine. But I cant figure out how to get the "Show 24 hours..." view to be default. 


    JS error when I drag past 4pm with DayStartTime="00:00:00" DayEndTime="23:59:59"   :

    1. Uncaught TypeError: Cannot call method 'get_rawIndex' of null
      1. b.Scheduler.WeekModel._getNextTimeSlotTelerik.Web.UI.WebResource.axd:5527
      2. b.Scheduler.WeekModel.getTimeSlotsBetweenTelerik.Web.UI.WebResource.axd:5522
      3. b.RadScheduler._updateRowSelectionTelerik.Web.UI.WebResource.axd:3918
      4. a.DayModel._processRowSelectionTelerik.Web.UI.WebResource.axd:5621
      5. b.RadScheduler._processRowSelectionTelerik.Web.UI.WebResource.axd:3914
      6. b.RadScheduler._onRowSelectionMouseMoveTelerik.Web.UI.WebResource.axd:3911
      7. g


    I want to be able to click and drag past 4pm, in week view, while viewing all hours in the day



    I just noticed now, when I drag past 4pm, it starts on the next day for some reason : screen shot http://imgur.com/qI9Yp 


  2. Ivana
    Admin
    Ivana avatar
    657 posts

    Posted 13 Mar 2012 Link to this post

    Hello Michael,

    You could achieve this scenario by either setting the ShowFullTime property of RadScheduler to true or by setting DayStartTime and DayEndTime properties of WeekView as you have already done.
    <telerik:RadScheduler ID="RadScheduler1" runat="server"
        SelectedView="WeekView" ShowFullTime="true">
        <WeekView DayStartTime="00:00:00" DayEndTime="23:59:59" /> 
    </telerik:RadScheduler>

    I have tested the latest suggestion locally and everything works fine -- no JS error is thrown when dragging and dropping appointments in every slot of the day.
    Could you specify the version of our controls that you are using? Also what is the markup definition of RadScheduler and the code related to it.

    Greetings,
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. walid
    walid avatar
    3 posts
    Member since:
    Jul 2015

    Posted 20 Nov 2015 in reply to Ivana Link to this post

    Hi

    When i change view in radscheduler i take this Error JS TypeError: a.DayModel is not a constructor

    Can you help me ??

    thanks in advance

  5. Nencho
    Admin
    Nencho avatar
    1457 posts

    Posted 25 Nov 2015 Link to this post

    Hello walid,

    Having in mind that this thread is a bit old, I would like to ask you to elaborate a bit more on your scenario. Please demonstrate your current implementation, specify the version of our product that you are currently using and under which browser the issue occurs.

    Regards,
    Nencho
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top