I'm using a RadTimeBar in combination with a RadSparkline to choose the items that appear in a RadGridView. This is my issue...
I have a collection of objects of type "ParsTask" that I pull for a user and I use that collection to pull tasks that are over due with this code:
And with this code my bar/sparkline looks like the capture1.png that is attached. It has a line that goes up and down, which appears "normal", but it also has a line that starts out on the top that is thick and thins out at the top. So it looks like there are two lines appearing in my sparkline.
When I add this code to the linq query:
The only difference is: t.TaskStatus = "OnHold", but I get only one sparkline - the one that goes up and down and looks "normal". Like capture2.png that is attached. There is only a difference of 3 extra objects with this additional query parameter.
Can you tell me why this is happening?
The xaml for the timebar/sparkline is here:
I have a collection of objects of type "ParsTask" that I pull for a user and I use that collection to pull tasks that are over due with this code:
OverdueTasks.Clear()
Dim overDueList As IEnumerable(Of ParsTask) = From t As ParsTask In TaskList Where t.End < DateTime.Today And (t.TaskStatus = "Opened" Or t.TaskStatus = "Pending")
For Each p As ParsTask In overDueList
OverdueTasks.Add(p)
Next
OverDueTasksEarliestDate = GetEarliestDate(OverdueTasks) 'gets earliest date in results
OverDueTasksLatestDate = GetLatestDate(OverdueTasks) 'gets latest date in results
TimeBarOverDueSelectionStart = OverDueTasksEarliestDate
TimeBarOverDueSelectionEnd = OverDueTasksLatestDate
And with this code my bar/sparkline looks like the capture1.png that is attached. It has a line that goes up and down, which appears "normal", but it also has a line that starts out on the top that is thick and thins out at the top. So it looks like there are two lines appearing in my sparkline.
When I add this code to the linq query:
Dim overDueList As IEnumerable(Of ParsTask) = From t As ParsTask In TaskList Where t.End < DateTime.Today And (t.TaskStatus = "Opened" Or t.TaskStatus = "Pending" Or t.TaskStatus = "OnHold")
The only difference is: t.TaskStatus = "OnHold", but I get only one sparkline - the one that goes up and down and looks "normal". Like capture2.png that is attached. There is only a difference of 3 extra objects with this additional query parameter.
Can you tell me why this is happening?
The xaml for the timebar/sparkline is here:
<
telerik:RadTimeBar
telerik:StyleManager.Theme
=
"Windows7"
Name
=
"timebarOverdue"
Height
=
"130"
PeriodStart
=
"{Binding Source={StaticResource MainViewModel}, Path=OverDueTasksEarliestDate, Mode=TwoWay, UpdateSourceTrigger=Default}"
PeriodEnd
=
"{Binding Source={StaticResource MainViewModel}, Path=OverDueTasksLatestDate, Mode=TwoWay, UpdateSourceTrigger=Default}"
SelectionStart
=
"{Binding Source={StaticResource MainViewModel}, Path=TimeBarOverDueSelectionStart, Mode=TwoWay, UpdateSourceTrigger=Default}"
SelectionEnd
=
"{Binding Source={StaticResource MainViewModel}, Path=TimeBarOverDueSelectionEnd, Mode=TwoWay, UpdateSourceTrigger=Default}"
MinSelectionRange
=
"1"
MaxSelectionRange
=
"7"
IsSnapToIntervalEnabled
=
"True"
>
<
telerik:RadTimeBar.Intervals
>
<
telerik:YearInterval
/>
<
telerik:MonthInterval
/>
<
telerik:WeekInterval
/>
<
telerik:DayInterval
/>
</
telerik:RadTimeBar.Intervals
>
<
telerik:RadAreaSparkline
Name
=
"AreaSparkLine1"
Height
=
"70"
Margin
=
"0,3"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
ItemsSource
=
"{Binding Source={StaticResource MainViewModel}, Path=OverdueTasks, Mode=TwoWay, UpdateSourceTrigger=Default}"
XValuePath
=
"End"
YValuePath
=
"EstDuration"
Background
=
"#FF5A6378"
PositiveAreaFill
=
"White"
AxisOriginValue
=
"0"
>
</
telerik:RadAreaSparkline
>
</
telerik:RadTimeBar
>