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

24 hour days, click and drag, JS error

3 Answers 43 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 08 Mar 2012, 07:48 PM
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 


3 Answers, 1 is accepted

Sort by
0
Ivana
Telerik team
answered on 13 Mar 2012, 11:21 AM
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.
0
walid
Top achievements
Rank 1
answered on 20 Nov 2015, 04:53 PM

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

0
Nencho
Telerik team
answered on 25 Nov 2015, 02:03 PM
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
Tags
Scheduler
Asked by
Michael
Top achievements
Rank 1
Answers by
Ivana
Telerik team
walid
Top achievements
Rank 1
Nencho
Telerik team
Share this question
or