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

2 issues found with RadScheduler and need some hints

15 Answers 280 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Seree
Top achievements
Rank 2
Seree asked on 30 Mar 2010, 09:17 AM
Hi,

First of all, I want to thank you for producing such a great product like RadScheduler.

Anyway, after I have purchased and try a bit more with it in my current project, I got 2 issues which need your kindly helps/hints to sort it out.

The 1st one is that I got a script error message everytime my mouse cursor hover over any appointment which you can see in the first attachment. (I have implemented a custom provider and post the code below)

The 2nd one is that the resource header row is not well aligned correctly with the appointment area which you can see in the second attachment.

Please suggest.

Here is my custom provider code.
using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Text; 
using AIAPS.DomainModel.Entities; 
using AIAPS.DomainModel.Repositories; 
using Telerik.Web.UI; 
 
namespace AIAPS.DomainModel.Utilities 
    public class ApsSchedulerProvider : SchedulerProviderBase 
    { 
        private List<Resource> _resources; 
 
        private void LoadResources() 
        { 
            _resources = new List<Resource>(); 
 
            Resource res = new Resource("Machine", "M-001", "M-001"); 
            _resources.Add(res); 
            res = new Resource("Machine", "M-002", "M-002"); 
            _resources.Add(res); 
            res = new Resource("Machine", "M-003", "M-003"); 
            _resources.Add(res); 
            res = new Resource("Machine", "M-004", "M-004"); 
            _resources.Add(res); 
            res = new Resource("Machine", "P-001", "P-001"); 
            _resources.Add(res); 
            res = new Resource("Machine", "P-002", "P-002"); 
            _resources.Add(res); 
        } 
 
        public ApsSchedulerProvider() 
        { 
            LoadResources(); 
        } 
 
        public override void Delete(RadScheduler owner, Appointment appointmentToDelete) 
        { 
            throw new NotImplementedException(); 
        } 
 
        public override IEnumerable<Appointment> GetAppointments(RadScheduler owner) 
        { 
            //throw new NotImplementedException(); 
            List<Appointment> appointments = new List<Appointment>(); 
            foreach (ApsProcessTimeline timeline in ApsProcessTimelinesRepository.List.OrderBy(t => t.BeginTime)) 
            { 
                Appointment app = new Appointment(); 
                app.ID = timeline.ApsProcessTimelineId; 
                app.Start = timeline.BeginTime.Value; 
                app.End = timeline.FinishTime.Value; 
                app.Description = timeline.MachineID; 
                app.Subject = timeline.MachineID; 
                app.Resources.Add(new Resource("Machine", timeline.MachineID, timeline.MachineID)); 
                appointments.Add(app); 
            } 
 
            owner.TimelineView.ShowResourceHeaders = true
            owner.TimelineView.GroupBy = "Machine"
            owner.TimelineView.GroupingDirection = GroupingDirection.Vertical; 
            //owner.TimelineView.NumberOfSlots = appointments.Count; 
            owner.TimelineView.HeaderDateFormat = "dd/MM/yy"
             
            owner.SelectedDate = appointments[0].Start; 
 
            return appointments; 
        } 
 
        public override IEnumerable<ResourceType> GetResourceTypes(RadScheduler owner) 
        { 
            //throw new NotImplementedException(); 
            List<ResourceType> resourceTypes = new List<ResourceType>(); 
            resourceTypes.Add(new ResourceType("Machine")); 
            return resourceTypes; 
        } 
 
        public override IEnumerable<Resource> GetResourcesByType(RadScheduler owner, string resourceType) 
        { 
            //throw new NotImplementedException(); 
            return _resources.FindAll(delegate(Resource res) { return res.Type == resourceType; }); 
        } 
 
        public override void Insert(RadScheduler owner, Appointment appointmentToInsert) 
        { 
            throw new NotImplementedException(); 
        } 
 
        public override void Update(RadScheduler owner, Appointment appointmentToUpdate) 
        { 
            throw new NotImplementedException(); 
        } 
    } 
 

*Note that currently I have only one type of resource which is "Machine" and it is being stored on "MachineID" field.

I am looking forward for your suggestion.

Thank you and best regards,
Seree W.

15 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 30 Mar 2010, 12:14 PM
Hello Seree,

Can you isolate the issues in a simple working demo and send it to us via a support ticket?


All the best,
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.
0
Seree
Top achievements
Rank 2
answered on 31 Mar 2010, 04:07 AM
Thanks Peter,

I have just submitted the support ticket with a simple demo project.

My ticket ID is 295651

Thank you,
Seree W.
0
Chris
Top achievements
Rank 1
answered on 05 Apr 2010, 04:18 PM
I've encountered this error as well.  I recently upgraded from a very old version (A 2007 version, forget which one) to the latest release.  I've had to do some minor changes but I receive the same error the previous poster gets whenever I try to hover over an existing appointment.  This is the line that throws the error in the Telerik javascript:

var l=(j.get_allowDelete()!=null)?j.get_allowDelete():this.get_allowDelete();
0
Seree
Top achievements
Rank 2
answered on 05 Apr 2010, 04:47 PM
Hi Chris,

Thanks for participating in the thread.

After I have submitted my issue through support ticketing system, I got replied from Telerik that this is somewhat a weird behavior occur on the webforms within MVC 2 web application project and Telerik need sometime to sort it out.

So, the alternative suggestion is to build an external application as a generic ASP.NET web application and put the RadScheduler there.

If I found another solution, I will share here.

Hope this help,
Seree W.
0
Rajesh
Top achievements
Rank 1
answered on 21 May 2010, 12:12 PM
Hi,
I was experiencing the same error in my web application. The error was occuring in the Month & Week view in the case when after the initial scheduler bind (for a given date range), i selected  another date within the same date range for which the scheduler was showing data.

In my case i had created a custom calendar provider ( fetching data from 2 different systems: database and webform) and in order to improve performance i was storing the appointment collection of the last date range when the Getappointment method was called. Now if the next call to the Getappointment was for the same  range i used return the stored appointment collection object instead of polling and creating the appointments again.

After debugging for a while it randomly struck me to comment the caching/storing part. Once i removed the storing part and returned colection afresh the error was resolved.

Although not much of an explnation to the cause, but hopefully the teleik team might make out something from this. 

regards,

Rajesh
0
Rajesh
Top achievements
Rank 1
answered on 21 May 2010, 01:10 PM
Hi,
 
Just adding to the my previous post.

Now instead of storing the Rad Appointment List, i now store the datables returned from the source and create a new appointment list from these stored datatables and return it. This works fine and i am not getting the javascript error with this approach.

Thanks
Rajesh
0
Mouse
Top achievements
Rank 1
answered on 21 Feb 2011, 10:48 AM
Hi

I seem to be also getting a script error. When I click dismiss in the reminder popup the script error appears. While im running this on localhost the error was indicated on the line;

var t=g.raiseCancellableControlEvent(this,"reminderDismissing",{appointment:v.get_owner(),reminder:v});

Error shown in attachment.

Either clicking yes or no on the error box does nothing. It just reappears when you try to do anything else.

Any help appreciated
Thanks
Phil
0
Mouse
Top achievements
Rank 1
answered on 21 Feb 2011, 11:30 AM
Hi

I have further looked into the error and found what seems to make the error occur.

This error seems to be if the scheduler has more than one appointment on one reminder.
When the reminder popup appears the first appointment is selected. If a user clicks the dismiss button at this point, it will dismiss the appointment selected. After the selected appointment has been dismissed (if you have more than one appointment on the same reminder), the scheduler will not select the second appointment and then when the users trys to click dismiss again the error appears.

Is there a way to select the second appointment after you dismiss the first appointment?

Thanks
Phil
0
Veronica
Telerik team
answered on 21 Feb 2011, 12:30 PM
Hello Phillip,

Thanks for reporting this.

It is a bug in the RadScheduler. It will be fixed soon and here you can find the PITS Issue: Public URL

P.S: I've increased your points for reporting the bug.

Greetings,
Veronica Milcheva
the Telerik team
0
Seth
Top achievements
Rank 1
answered on 07 May 2011, 09:55 PM
I am struggling with the 2nd issue that Seree pointed out and after combing through these forums I am not seeing an answer. When I have multiple appointments in the same slot, the slot grows, but the corresponding resource cell does not.  And then the appointments become completely misaligned with their resources.

Any ideas?
Thanks
Seth
0
Veronica
Telerik team
answered on 09 May 2011, 03:11 PM
Hello Seree,

Could you please send us a sample project that reproduces the issue or could you please check whether this occures in our demos? We'll appreciate if you can guide us to the steps for reproducing this.

All the best,
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Carl
Top achievements
Rank 1
answered on 14 Jun 2013, 05:23 PM
Hi Seth,

Did you find a resolution for this? We seem to be running into the same issue.

Thanks,
Carl
0
Plamen
Telerik team
answered on 19 Jun 2013, 05:20 AM
Hi,

 
Would you please share if the issue is still reproduced in some of our on-line demos. You can also refer to this documentation article where in the last section is showing one way to workaround this misalignment.

Regards,
Plamen
Telerik
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 the blog feed now.
0
Carl
Top achievements
Rank 1
answered on 19 Jun 2013, 04:44 PM
This happens for me in the TimelineView when grouping by Resource and an appointment has more than one resource. I don't see that any of the online demos have this same scenario. I will try the workaround that you mention.
0
Carl
Top achievements
Rank 1
answered on 19 Jun 2013, 05:22 PM
The workaround in the article seems to have worked for me. Thanks.
Tags
Scheduler
Asked by
Seree
Top achievements
Rank 2
Answers by
Peter
Telerik team
Seree
Top achievements
Rank 2
Chris
Top achievements
Rank 1
Rajesh
Top achievements
Rank 1
Mouse
Top achievements
Rank 1
Veronica
Telerik team
Seth
Top achievements
Rank 1
Carl
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or