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

[Solved] Getting js error in getTimeSlotDomElement() Views\Month\Model.js

1 Answer 80 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Greg Mercer
Top achievements
Rank 1
Greg Mercer asked on 03 Mar 2010, 10:08 PM
Hi,

First... Happy Independence Day to Bulgaria !!

Now on to the question...

I've been using version 2009_3_1314 of the Telerik Scheduler control and I've run into a javascript error when I switch to a Month view.

The error points to the following code found in Telerik.Web.UI\Scheduler\Views\Month\Model.js:

    _getTimeSlotDomElement : function(rawIndex)
    {
        var element = this._owner.get_element();
        var rowIndex = Math.floor(rawIndex.dayIndex / this.get_weekLength());
        var cellIndex = Math.floor(rawIndex.dayIndex % this.get_weekLength());
        return  $('div.rsTopWrap table.rsContentTable', element)[0].tBodies[0].rows[rowIndex].cells[cellIndex];
    },

It looks as though when I go to open the Jan 2010 month view, the time slot for Feb 1 (which from what I can tell should have a rowindex is set to 5 and a cellindex is set to 1) gets a null value when we are on the last line of this function.

Is there any way to easily correct this issue? Can I in some way modify the Model.js file and have things rebuilt some how?

Thanks as always for all your help,
Greg

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 10 Mar 2010, 01:43 PM
Hello Greg,

Thank you and apologies for the late reply.

I've tested this scenario with both 2009.3.1314 and 2010.1.309 and I couldn't see a JavaScript error.

Can you please send us the full source of the page that you're testing with? Maybe we're missing something in our tests. Thank you.

All the best,
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.
Tags
Scheduler
Asked by
Greg Mercer
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or