Hi
When using a Databar inside a RadGrid along with a Data Templete the stacked Data bar will only display the first 2 items from the collections. Or am I missing something ?
When using a Databar inside a RadGrid along with a Data Templete the stacked Data bar will only display the first 2 items from the collections. Or am I missing something ?
<
telerik:GridViewDataColumn
Width
=
"*"
SortMemberPath
=
"TotalTakingsValue"
>
<
telerik:GridViewColumn.Header
>
<
StackPanel
>
<
TextBlock
Text
=
"Takings"
/>
</
StackPanel
>
</
telerik:GridViewColumn.Header
>
<
telerik:GridViewColumn.CellStyle
>
<
Style
TargetType
=
"telerik:GridViewCell"
>
<
Setter
Property
=
"ContentTemplate"
>
<
Setter.Value
>
<
DataTemplate
>
<
Grid
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"80"
/>
<
ColumnDefinition
/>
</
Grid.ColumnDefinitions
>
<
TextBlock
Text
=
"{Binding TotalTakingsValue, StringFormat='{}{0:c}'}"
HorizontalAlignment
=
"Right"
Margin
=
"0 0 10 0"
VerticalAlignment
=
"Center"
/>
<
StackPanel
Orientation
=
"Vertical"
Grid.Column
=
"1"
>
<
telerik:RadStackedDataBar
x:Name
=
"TakingsStackBar"
Height
=
"18"
Margin
=
"2"
Maximum
=
"9000"
ValuePath
=
"Amount"
ToolTipFormat
=
"c"
ToolTipPath
=
"Amount"
ItemsSource
=
"{Binding KPITakingsBarData}"
ShowToolTips
=
"True"
>
</
telerik:RadStackedDataBar
>
<
telerik:RadDataBar
x:Name
=
"TakingsTargetBar"
Value
=
"{Binding KPITakings}"
Maximum
=
"{Binding Path=Text, ElementName=MaxBarData}"
LabelVisibility
=
"Collapsed"
Height
=
"2"
Margin
=
"0 0 3 0"
ToolTipService.ToolTip
=
"{Binding KPITakings,StringFormat='{}{0:c}'}"
/>
</
StackPanel
>
</
Grid
>
</
DataTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
</
telerik:GridViewColumn.CellStyle
>
<
telerik:GridViewDataColumn.AggregateFunctions
>
<
telerik:SumFunction
Caption
=
" "
ResultFormatString
=
"{}{0:c}"
SourceField
=
"TotalServiceValue"
/>
</
telerik:GridViewDataColumn.AggregateFunctions
>
</
telerik:GridViewDataColumn
>