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

RadScheduleView does nor support Binding elements

4 Answers 103 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Catherine
Top achievements
Rank 1
Catherine asked on 01 Mar 2011, 08:20 PM
Hi,

I used this code with the RadCheduleView.
<Slider Minimum="{Binding ActualHeight, ElementName=ScheduleView}" Maximum="5000" Margin="8 0 8 10"
        VerticalAlignment="Center"
        Value="{Binding ActiveViewDefinition.MinTimeRulerExtent, ElementName=ScheduleView, Mode=TwoWay}" />

An error appears when the application has started.
Please see the attached file.

English Translation :
Unhandled exception ("Error unhandled in Silverlight application
Code : 404
Category : ManagedRuntimeError
Message : System.ArgumentException : Value cannot be defined or NaN

Regards.
C.Léoni.

4 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 02 Mar 2011, 10:07 AM
Hi Catherine,

The default value of MinTimeRulerExtent property is NaN. Slider control Value property cannot be NaN and this cause the exception (the slider control). I think you can use FallbackValue property on Binding and specify valid double value.

Let us know if you need more information.

All the best,
Hristo
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Catherine
Top achievements
Rank 1
answered on 02 Mar 2011, 10:49 AM
Hi,

Do you have a sample to show me how I can do ?

Regards.
C.Léoni.
0
Hristo
Telerik team
answered on 02 Mar 2011, 11:18 AM
Hi Catherine,

This is property of Binding object:
<Slider Minimum="{Binding ActualHeight, ElementName=ScheduleView}" Maximum="5000" Margin="8 0 8 10"
VerticalAlignment="Center"
Value="{Binding ActiveViewDefinition.MinTimeRulerExtent, ElementName=ScheduleView, Mode=TwoWay, FallbackValue=100}" />

Hope this helps.

Best wishes,
Hristo
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Accepted
Jeppe
Top achievements
Rank 1
answered on 01 Jun 2011, 05:23 PM
I had the same problem, but I solved it by settting 

MinTimeRulerExtent ="1" for all ViewDefinitions as follows:  

  scheduleView:DayViewDefinition MinTimeRulerExtent="1"
  
scheduleView:WeekViewDefinition MinTimeRulerExtent="1"

  scheduleView:MonthViewDefinition MinTimeRulerExtent ="1"
 
scheduleView:TimelineViewDefinition MinTimeRulerExtent ="1" 

Hope, that solves your problem.

 

Kind Regards
Jeppe 

 

 

 

 

 

 

 

Tags
ScheduleView
Asked by
Catherine
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Catherine
Top achievements
Rank 1
Jeppe
Top achievements
Rank 1
Share this question
or