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

ArgumentOutOfRangeException when in timeline and no resources set

3 Answers 136 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Zoinky
Top achievements
Rank 1
Zoinky asked on 02 Dec 2008, 10:42 PM
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

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 05 Dec 2008, 08:03 AM
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.
0
Zoinky
Top achievements
Rank 1
answered on 05 Dec 2008, 01:44 PM
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.
0
Peter
Telerik team
answered on 05 Dec 2008, 02:20 PM
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.
Tags
Scheduler
Asked by
Zoinky
Top achievements
Rank 1
Answers by
Peter
Telerik team
Zoinky
Top achievements
Rank 1
Share this question
or