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

Exception on Q1 2011

4 Answers 38 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Marco
Top achievements
Rank 1
Marco asked on 21 Mar 2011, 05:41 PM
When trying to create View Definitions programatically I found that if the GroupHeaderDateStringFormat is not set, we get an exception with a key of some kind.

For example this returns that exception:

WeekViewDefinition qwe = new WeekViewDefinition();
qwe.VisibleDays = 7;
qwe.Title = "aksdhkasdhas";
qwe.DayStartTime = new TimeSpan(6, 00, 00);
qwe.DayEndTime = new TimeSpan(23, 00, 00);
radScheduleView.ViewDefinitions.Add(qwe);

And this does not:
WeekViewDefinition qwe = new WeekViewDefinition();
qwe.GroupHeaderDateStringFormat = "{0:dd dddd}";
qwe.Orientation = Orientation.Horizontal;
qwe.VisibleDays = 7;
qwe.Title = "aksdhkasdhas";
qwe.DayStartTime = new TimeSpan(6, 00, 00);
qwe.DayEndTime = new TimeSpan(23, 00, 00);
radScheduleView.ViewDefinitions.Add(qwe);

It's possibly some code not handled correctly on your side?

Marco

4 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 22 Mar 2011, 05:36 PM
Hello Marco,

I tried to reproduce the problem using the attached application, but to no avail. Am I doing something differently than you?

Please, not that I am using the Q3 2011 version of RadControls - 2011.3.315.

Greetings,
Valeri Hristov
the Telerik team
0
Marco
Top achievements
Rank 1
answered on 23 Mar 2011, 10:56 AM
Q3 2011 ????
The latest version on your site is Q1 2011.. is there a secret place to download the this year's next versions? hehe

You mean Q3 2010 SP1?
0
Marco
Top achievements
Rank 1
answered on 23 Mar 2011, 10:58 AM
Can you try with the current 2011.1.315 ?
0
Valeri Hristov
Telerik team
answered on 23 Mar 2011, 11:42 AM
Hi Marco,

I apologize, I intended to write Q1 2011, version 2011.1.315, a.k.a. the latest official version.

All the best,
Valeri Hristov
the Telerik team
Tags
ScheduleView
Asked by
Marco
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Marco
Top achievements
Rank 1
Share this question
or