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

Moving appointment javascript error

6 Answers 73 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Piyush Bhatt
Top achievements
Rank 2
Piyush Bhatt asked on 14 Mar 2008, 07:43 PM
Whille moving an appointment in Scheduler works only sometime successfully, some other time browser gives Javascript error at following location:

var _af=_a5[i].parentNode.parentNode.rows[_ae].cells[_a5[i].cellIndex];

in following script: (I am trying move appointment when there is scrollbar in the scheduler and I am almost at the middle or bottom of the scrollbar).

_onDocumentMouseMove:function(e){ var _a5=this.get_cells(); var _a6=$telerik.getScrollOffset(document.body,true); if(this._dragging&&this._draggingAppointment){ for(var i=0,_a8=_a5.length;i<_a8;i++){ var _a9=_a5[i].targetRect; var x=e.clientX; var y=e.clientY; x+=_a6.x; y+=_a6.y; var _ac=_a9.y+_a9.height; var _ad=_a9.x+_a9.width; if(x>=_a9.x&&x<=_ad&&y>=_a9.y&&y<=_ac){ var _ae=0; if(this._dragOrigin){ _ae=this._draggingAppointment._originalParent.parentNode.parentNode.rowIndex+(_a5[i].parentNode.rowIndex-this._dragOrigin.parentNode.rowIndex); }else{ this._dragOrigin=_a5[i].parentNode.cells[0]; } if(_ae<0){ _ae=0; } var _af=_a5[i].parentNode.parentNode.rows[_ae].cells[_a5[i].cellIndex]; if(_af.firstChild==this._draggingAppointment._domElement.parentNode){ return; } if(_af.firstChild.nodeType==3){ _af.removeChild(_af.firstChild); var _b0=this._draggingAppointment._domElement.parentNode.cloneNode(false); _b0.style.zIndex=999; if($telerik.isFirefox){ _b0.style.height=_af.clientHeight+"px"; } _af.appendChild(_b0); } if(this.get_selectedView()!="MonthView"){ _af.firstChild.appendChild(this._draggingAppointment._domElement); }else{ _af.childNodes[1].appendChild(this._draggingAppointment._domElement); } this._keepElementInView(this._draggingAppointment._domElement); return; } } } }

6 Answers, 1 is accepted

Sort by
0
Dimitar Milushev
Telerik team
answered on 17 Mar 2008, 03:19 PM
Hi Piyush,

In the current version of RadScheduler moving appointments is slightly unstable with certain combinations of browser and DOCTYPEs. The next version of RadScheduler will be greatly improved in this area as we have completely rewritten this part of the client-side code.

If this is crucial for your project and you cannot wait for the next release, please open a support ticket and send us a sample project that reproduces the issue so we can investigate the problem and hopefully provide a workaround.

Sincerely yours,
Dimitar Milushev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Piyush Bhatt
Top achievements
Rank 2
answered on 17 Mar 2008, 03:22 PM
when will your next version be released? I should be okay for April.

If your next version is June or after then please let me know soon.

-Piyush
0
Dimitar Milushev
Telerik team
answered on 17 Mar 2008, 03:52 PM
Hello Piyush,

The next release of the Prometheus suite is scheduled for mid-April.

Greetings,
Dimitar Milushev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Corey Alguire
Top achievements
Rank 1
answered on 14 May 2008, 08:52 AM
I have a scheduler with MinutesPerRow set to 10. I am using the Q1 2008 release. For some reason, when I drag an appointment, the new start time is always off by two hours. For instance, when I drag an appointment from 9:00 Tuesday straight over to (what should be) 9:00 Wednesday, the new start time is evaluated as 11:00 Wednesday. Any idea what could be going on here?
0
Peter
Telerik team
answered on 15 May 2008, 03:20 PM
Hi Corey,

The problem is fixed with service pack 1 which will be released today (May 15).

Greetings,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Corey Alguire
Top achievements
Rank 1
answered on 16 May 2008, 11:26 AM
Hi Peter,
Thanks. Sure enough, the Service Pack did the trick!
Tags
Scheduler
Asked by
Piyush Bhatt
Top achievements
Rank 2
Answers by
Dimitar Milushev
Telerik team
Piyush Bhatt
Top achievements
Rank 2
Corey Alguire
Top achievements
Rank 1
Peter
Telerik team
Share this question
or