ArgumentOutOfRangeException when in timeline and no resources set

4 posts, 0 answers
  1. Zoinky
    Zoinky avatar
    45 posts
    Member since:
    Sep 2007

    Posted 02 Dec 2008 Link to this post

    Get the following eror by simply having a radscheduler on the page without specifying (or returning 0 resources),
    for a sample, see this thread http://www.telerik.com/community/forums/aspnet-ajax/scheduler/many-issues-bugs-suggestions-sample-provided.aspx

    Could someone also please look and respond to that thread, i am getting a little desperate, its been 3 days and no response, I need to show this prototype to my boss if we are to decide on ur controls.

    Server Error in '/Scheduler' Application.

    Specified argument was out of the range of valid values.
    Parameter name: index

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
    Parameter name: index

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
    Parameter name: index]
       System.Web.UI.ControlCollection.get_Item(Int32 index) +8665582
       System.Web.UI.WebControls.TableRowCollection.get_Item(Int32 index) +27
       Telerik.Web.UI.Scheduler.Views.SchedulerAllDayTable.OnPreRender(EventArgs e) +106
       System.Web.UI.Control.PreRenderRecursiveInternal() +80
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
    
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 05 Dec 2008 Link to this post

    Hello Zoinky,

    Probably, you have forgot to remove GroupBy="Room". If you have no resources, you cannot use the GroupBy property.


    Greetings,
    Peter
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Zoinky
    Zoinky avatar
    45 posts
    Member since:
    Sep 2007

    Posted 05 Dec 2008 Link to this post

    the groupby was causing the problem but i think the group by should just be ignored if no resources are avaialbe instead of me removing the group by programmically depending on if i am binding resources or not.
    for now i guess i can put the hack in that will programmically remove the group by, i hope what will actually be implemented is that when no resources are bound that the scheduler will have something like the "no records in the database" feature of the radgrid or something along these lines.
  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 05 Dec 2008 Link to this post

    Hi Zoinky,

    Thanks for your feedback. I will log your suggestion so our developers can consider it.


    Cheers,
    Peter
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top