2 issues found with RadScheduler and need some hints

16 posts, 0 answers
  1. Seree
    Seree avatar
    29 posts
    Member since:
    Sep 2006

    Posted 30 Mar 2010 Link to this post

    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.
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 30 Mar 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Seree
    Seree avatar
    29 posts
    Member since:
    Sep 2006

    Posted 30 Mar 2010 Link to this post

    Thanks Peter,

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

    My ticket ID is 295651

    Thank you,
    Seree W.
  5. Chris
    Chris avatar
    43 posts
    Member since:
    Aug 2008

    Posted 05 Apr 2010 Link to this post

    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();
  6. Seree
    Seree avatar
    29 posts
    Member since:
    Sep 2006

    Posted 05 Apr 2010 Link to this post

    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.
  7. Rajesh
    Rajesh avatar
    5 posts
    Member since:
    May 2009

    Posted 21 May 2010 Link to this post

    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
  8. Rajesh
    Rajesh avatar
    5 posts
    Member since:
    May 2009

    Posted 21 May 2010 Link to this post

    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
  9. Mouse
    Mouse avatar
    26 posts
    Member since:
    Sep 2009

    Posted 21 Feb 2011 Link to this post

    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
  10. Mouse
    Mouse avatar
    26 posts
    Member since:
    Sep 2009

    Posted 21 Feb 2011 Link to this post

    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
  11. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 21 Feb 2011 Link to this post

    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
  12. Seth
    Seth avatar
    25 posts
    Member since:
    Jan 2009

    Posted 07 May 2011 Link to this post

    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
  13. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 09 May 2011 Link to this post

    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.

  14. Carl
    Carl avatar
    8 posts
    Member since:
    Oct 2012

    Posted 14 Jun 2013 Link to this post

    Hi Seth,

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

    Thanks,
    Carl
  15. Plamen
    Admin
    Plamen avatar
    2731 posts

    Posted 19 Jun 2013 Link to this post

    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.
  16. Carl
    Carl avatar
    8 posts
    Member since:
    Oct 2012

    Posted 19 Jun 2013 Link to this post

    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.
  17. Carl
    Carl avatar
    8 posts
    Member since:
    Oct 2012

    Posted 19 Jun 2013 Link to this post

    The workaround in the article seems to have worked for me. Thanks.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017