This question is locked. New answers and comments are not allowed.
I'm trying to bind a timebar with a sparkline, to data from RIA services, using a RadDomainDataSource. I can only seem to bind the sparkline to the Yvalue, when I bind to the DateTime field, it crashes.
While this runs, the sparkline data isn't in sync with the timebar dates, I'm assuming for this to work, I need to bind the XValuePath to the field AdmDate. However, when I do this, it crashes.
Unfortunately the only binding examples I can find are viewModel based, and aren't appropriate to this RIA Services based project.
<
telerik:RadDomainDataSource
Height
=
"100"
HorizontalAlignment
=
"Left"
Margin
=
"66,28,0,0"
Name
=
"radDomainDataSource1"
VerticalAlignment
=
"Top"
Width
=
"100"
AutoLoad
=
"True"
QueryName
=
"GetAdmissionsSummariesQuery"
>
<
telerik:RadDomainDataSource.DomainContext
>
<
server:DWContext
/>
</
telerik:RadDomainDataSource.DomainContext
>
</
telerik:RadDomainDataSource
>
<
telerik:RadTimeBar
Name
=
"timeBar1"
PeriodStart
=
"01-Apr-2008"
PeriodEnd
=
"31-Mar-2012"
VisiblePeriodStart
=
"01-Apr-2008"
VisiblePeriodEnd
=
"31-Mar-2009"
SelectionStart
=
"1-Apr-2008"
SelectionEnd
=
"31-May-2008"
IsSnapToIntervalEnabled
=
"True"
MinSelectionRange
=
"28.00:00:00"
MaxSelectionRange
=
"62.00:00:00"
Height
=
"175"
VerticalAlignment
=
"Top"
>
<
telerik:RadTimeBar.Intervals
>
<
telerik:QuarterInterval
/>
<
telerik:MonthInterval
/>
<
telerik:WeekInterval
/>
<
telerik:DayInterval
/>
</
telerik:RadTimeBar.Intervals
>
<
telerik:RadLinearSparkline
ItemsSource
=
"{Binding DataView,ElementName=radDomainDataSource1}"
LineStroke
=
"#FF767676"
YValuePath
=
"Adms"
Margin
=
"0,3"
/>
</
telerik:RadTimeBar
>
While this runs, the sparkline data isn't in sync with the timebar dates, I'm assuming for this to work, I need to bind the XValuePath to the field AdmDate. However, when I do this, it crashes.
Unfortunately the only binding examples I can find are viewModel based, and aren't appropriate to this RIA Services based project.