Dear Support,
I want to Binding to GridView.SelectedItems.Count or other DependencyProperty, but it returns nothing, no error no exception. Please help me how to Binding in telerik:GridViewColumn.Footer.
Other test results:
- Binding to AggregateFunctions works fine.
- Binding to GridView.SelectedItems.Count or other DependencyProperty out of the range of GridView works fine.
Code is below:
<
telerik:GridViewDataColumn
Header
=
"PO Number"
DataMemberBinding
=
"{Binding PONUMBER}"
>
<
telerik:GridViewDataColumn.AggregateFunctions
>
<
custom:CountDistinctFunction
Caption
=
"Distinct PO Count:"
/>
</
telerik:GridViewDataColumn.AggregateFunctions
>
<
telerik:GridViewDataColumn.Footer
>
<
StackPanel
Orientation
=
"Vertical"
Margin
=
"0"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
Text
=
"Selected:"
/>
<
TextBlock
Text
=
"{Binding ElementName=myGridView, Path=SelectedItems.Count}"
/>
</
StackPanel
>
<
telerik:AggregateResultsList
ItemsSource
=
"{Binding}"
VerticalAlignment
=
"Center"
>
<
ItemsControl.ItemTemplate
>
<
DataTemplate
>
<
StackPanel
Orientation
=
"Horizontal"
VerticalAlignment
=
"Center"
>
<
TextBlock
VerticalAlignment
=
"Center"
Text
=
"{Binding Caption}"
/>
<
TextBlock
VerticalAlignment
=
"Center"
Text
=
"{Binding FormattedValue}"
/>
</
StackPanel
>
</
DataTemplate
>
</
ItemsControl.ItemTemplate
>
</
telerik:AggregateResultsList
>
</
StackPanel
>
</
telerik:GridViewDataColumn.Footer
>
</
telerik:GridViewDataColumn
>
Thanks for your support.