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

Q1 2012: RadScheduler in MVC 3.0

10 Answers 166 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 20 Feb 2012, 05:46 AM
Hi all,

I have been trying run a demo project (the zip file that I downloaded was named as 213914_radschedulerdemo.zip) posted by Telerik support in one of the Telerik forums. The demo work as well, so when telerik release version Q1 2012(2012.1.215.40) I downloaded and try run it on new version of telerik but after making these changes I get following error:

 

Server Error in '/' Application.

Selection out of range
Parameter name: value

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: Selection out of range
Parameter name: value

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: Selection out of range
Parameter name: value]
   Telerik.Web.UI.RadComboBox.PerformDataBinding(IEnumerable dataSource) +173
   Telerik.Web.UI.RadComboBox.OnDataSourceViewSelectCallback(IEnumerable data) +491
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +33
   Telerik.Web.UI.RadComboBox.OnDataBinding(EventArgs e) +1256
   Telerik.Web.UI.RadComboBox.PerformSelect() +37
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
   Telerik.Web.UI.RadComboBox.DataBind() +70
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   Telerik.Web.UI.RadScheduler.CreateHiddenAdvancedInsertForm(Control container) +487
   Telerik.Web.UI.RadScheduler.CreateHiddenAdvancedForms() +150
   Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +322
   Telerik.Web.UI.RadScheduler.CreateChildControls() +34
   System.Web.UI.Control.EnsureChildControls() +102
   System.Web.UI.Control.PreRenderRecursiveInternal() +42
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496

is there any change within new version telerik that make impacted on it??
Note: I only change reference to dlls (Telerik.Web.UI, Telerik.Web.Design)

Thanks,

10 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 22 Feb 2012, 08:57 AM
Hi Robert,

 
I downloaded the project 213914_radschedulerdemo.zip and tested it with the latest version Q1 2012 (2012.1.215.35. It worked as expected. Here you can see a video of the test. Please have in mind that this Code Library is created under .Net 3.5 so if you only change reference to dlls 4.0 (Telerik.Web.UI, Telerik.Web.Design)  it may trigger some exception.

You can also refer to this KB where you can see an example with MVC 3 that uses the latest version in .net 4.0.

Hope this will be helpful. if you have further questions please don't hesitate to ask.

All the best,
Plamen Zdravkov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Dave Pyron
Top achievements
Rank 1
answered on 23 Feb 2012, 02:03 PM
I am having this same issue after updating the Telerik DLLS for RadScheduler in the RadControls for ASP.NET AJAX Q1 2012 release. My solution is all .NET 3.5, not .NET 4.0. So I'm not sure what to do. Thanks.
0
Plamen
Telerik team
answered on 27 Feb 2012, 02:00 PM
Hello Dave,

I have already tested similar functionality and could not reproduce the issue. Would you please be that kind and let me know how should I change the project from this Code Library in order to reproduce and observe the issue locally?

All the best,
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.
0
Amit
Top achievements
Rank 1
answered on 08 Mar 2012, 04:34 PM
I am also facing the same problem. i am using "RadControls for ASP.NET AJAX Q1 2012" with visual studio 2010 and when i am clicking on the "New recurring appointment" following error occurs

Selection out of range
Parameter name: value

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: Selection out of range
Parameter name: value

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: Selection out of range
Parameter name: value]
   Telerik.Web.UI.RadComboBox.PerformDataBinding(IEnumerable dataSource) +173
   Telerik.Web.UI.RadComboBox.OnDataSourceViewSelectCallback(IEnumerable data) +489
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +33
   Telerik.Web.UI.RadComboBox.OnDataBinding(EventArgs e) +1254
   Telerik.Web.UI.RadComboBox.PerformSelect() +37
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
   Telerik.Web.UI.RadComboBox.DataBind() +70
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +1311
   Telerik.Web.UI.RadScheduler.CreateChildControls() +34
   System.Web.UI.Control.EnsureChildControls() +102
   System.Web.UI.Control.PreRenderRecursiveInternal() +42
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1    



I have also downloaded the demo projects "RadControls for ASP.NET AJAX Q1 2012" and facing same error on all 4 samples of "Rad Scheduler"

.

0
Plamen
Telerik team
answered on 09 Mar 2012, 06:00 PM
Hi Amit,

 
This behavior is quite unusual but unfortunately we can not fix it until we reproduce it and observe it locally. I tested the project from the Code Library once again but could not observe it. Here is a video of my test.

Would you please let me know if the steps to reproduce are different or if I need to add some other code in order to replicate the issue?

Kind 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.
0
Plamen
Telerik team
answered on 19 Mar 2012, 08:55 AM
Hi everybody,

 
We have inspected the issue furthermore and it seems to be a bug in the time zones support that we are currently adding to RadScheduler.

Please excuse us for the inconvenience caused.

Here is a workaround that is fixing the issue temporary:

<AdvancedForm EnableCustomTimeZones="true" />

If you don't want to add the time zone RadCombobox you can hide it in the onCientFormCreated with this javascript:
function OnClientFormCreated(sender, args) {
    $telerik.$(".rsTimePickers li:nth-child(2)").hide();
}

Hope this will be helpful.


All the best,
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.
0
Brenda Rueb
Top achievements
Rank 1
answered on 11 Apr 2012, 02:10 PM
I'm hitting the same problem with the asp.net ajax controls, using framework 4, just adding a basic scheduler control. Will this fix work for this version as well as the mvc tools?
Brenda
0
Peter
Telerik team
answered on 11 Apr 2012, 02:40 PM
Hi Brenda,

We have already fixed this bug for the upcoming service pack.

Regards,
Peter
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.
0
Brenda Rueb
Top achievements
Rank 1
answered on 11 Apr 2012, 03:23 PM
Peter,
glad to hear that! I've tried dropping back to framework 3.5, as I've read several threads that said people had gotten the control to work with that. Still not feeling the love, same error message, even with the code added in this thread.
I'm sure that you can't say when the service pack will be released, but I've got to get this project done this week, and it's already wednesday. sigh. I guess I'll install a previous version of the tools and see if I can get them to work, then upgrade to 2012 when the service pack comes out. I'm on the email subscription, so I should get notified when the service pack comes out.
Brenda
0
Peter
Telerik team
answered on 11 Apr 2012, 03:43 PM
Hi Brenda,

The service pack will be released today if everything goes as planned or tomorrow at the latest.

Greetings,
Peter
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.
Tags
Scheduler
Asked by
Robert
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Dave Pyron
Top achievements
Rank 1
Amit
Top achievements
Rank 1
Brenda Rueb
Top achievements
Rank 1
Peter
Telerik team
Share this question
or