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

Index out of range when adding special days across multiple months.

7 Answers 56 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
fightclub777
Top achievements
Rank 1
fightclub777 asked on 30 Jun 2008, 11:29 PM
Hello,

I am using a radCalendar and creating Special Days based the selected date on the calendar.  For example, if someone clicks on 7/2/2008, certain specials days are rendered based on that date (7/3, 7/4, etc).

However, when a user clicks on a date towards the end of the month, like on 7/26, and one of the newly rendered specials days falls onto the Next month (i.e. 8/1), the calendar returns:

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index" 

When this scenario occurs, I am setting the calendar.MultiViewRows = 2, but that does nothing.  Ideally, I'd like to show only a single month view when all the special days fall in the same month, but show 2 months when the starting special day and the ending special day are different.  Your help will be greatly appreciated.


7 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 04 Jul 2008, 08:40 AM
Hi fightclub777,

I followed your scenario and was able to reproduce the error. It seems that a calendar cannot change its own multi-month view on postback.
I have forwarded the issue to our developers and hopefully you can find it fixed in our next version release.

Please excuse us for the inconvenience.

Regards,
Iana
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
fightclub777
Top achievements
Rank 1
answered on 08 Jul 2008, 10:49 PM
What? No Telerik points? :-)  ...

Thank you for the reply. I look forward to receiving the next release.  Thanks for the great tools and the magnificent support that comes with it.
0
Iana Tsolova
Telerik team
answered on 09 Jul 2008, 08:10 AM
Hello fightclub777,

Your Telerik points are updated.

Let us know if other issues arise.

All the best,
Iana
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
fightclub777
Top achievements
Rank 1
answered on 30 Jul 2008, 12:52 AM
Hi, I just installed the latest build (2008.2 723), but am still experiencing the same problem.  Can you confirm that this fix was included in the build?
0
Iana Tsolova
Telerik team
answered on 30 Jul 2008, 11:30 AM
Hi fightclub777,

Unfortunately the issue is not solved yet. It appeared to be more complex than we initially expected and needs more time for solving.

Please excuse us for the inconvenience.

Sincerely yours,
Iana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
fightclub777
Top achievements
Rank 1
answered on 01 Oct 2008, 01:09 AM
Hi,

I just installed the 2008.2.826.20 version of the controls and this issue is STILL not fixed?  Is there a realistic plan for this problem or a fix in the future? 

Please please please please help us out here.
0
Missing User
answered on 02 Oct 2008, 09:58 AM
Hi,


Unfortunately we have not managed to fix the issue. The problem appeared to be more complex and we are not sure when it will be resolved at our side. We deeply apologize for the inconvenience that this might have caused you. As workaround you could use the IsHidden property. Please find attached an application which illustrates simplified version of this approach

All the best,
Plamen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Calendar
Asked by
fightclub777
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
fightclub777
Top achievements
Rank 1
Missing User
Share this question
or