Timeline issue

4 posts, 0 answers
  1. Lili
    Lili avatar
    18 posts
    Member since:
    Jun 2012

    Posted 21 Jun 2012 Link to this post

    Hello, Telerik team:
    Please help for this issue:
    I'm working on timelien.When I click Timeline, it shows default view looks fine. When change the view  to licke day or weeks or month fromTimeline show, the error shows up as "Object reference not set to an instance of an object." When  change to click between day or weeks or month again, the error go away. When i debug, the error point to in tag <AppointmentTemplate> first line at <%# Eval("Subject") %>. From other swith click, the code go to

     RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e). Only from timeline switch to ohters view, the code go to <%# Eval("Subject") %>, then cause this error.

     

     Does any one know what is wrong when switch to click from timeline to other view that error shows up?

    Thanks!!

     

  2. Plamen
    Admin
    Plamen avatar
    2946 posts

    Posted 25 Jun 2012 Link to this post

    Hi Lili,

    It looks like some custom error because such behavior is not observe in our Customize the Appointment on-line demo where the same code have been used. Please review it and let me know if your case is somehow different from it.

     If you still can't figure what is not working properly please share all the code connected to RadScheduler that is used so the issue can be isolated and tested locally.

    Regards,
    Plamen Zdravkov
    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.
  3. Lili
    Lili avatar
    18 posts
    Member since:
    Jun 2012

    Posted 25 Jun 2012 Link to this post

    Thanks Plamen for reply.
    If I add RadAjaxPanel tag between RadScheduler as below, when switch from timeline view to others view, the error go away. But When I select outside of Radscheduler dropdown box to show different appointments, it still shows that error:"Object reference not set to an instance of an object.". This cuase is because after I add new Tag: RadAjaxPane. Do you have any idea?  Why Timeline click action differnt with others like Month, Week?  it needs to add telerik:RadAjaxPanel tag. Thanks!

    <

    telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1">

    <telerik:RadScheduler ID="RadScheduler1" runat="server"
    ...
    ...

    </telerik:RadScheduler>

    </telerik:RadAjaxPanel>

     

  4. Plamen
    Admin
    Plamen avatar
    2946 posts

    Posted 28 Jun 2012 Link to this post

    Hi Lili,

     
    I have prepared a sample page that implements a scenario similar to what you have described so far but could not observe any unusual behavior at my side. Please review it and let us know what else should be added to it in order to reproduce the problem locally so we can be more helpful.

    Greetings,
    Plamen Zdravkov
    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.
Back to Top