This bug exist in multiple examples from demo application(Appearance/Columns, Scrolling, Date Formatting, and for Commands using ctrl for multi selection). If you move to the bottom of the grid from vertical scrollbar and delete one or multiple items from the bottom, on the top of the grid white spaces appear. I’m using RadControls for WPF Q1 2011 SP1 and we are obligated by the client to use this telerik version so if this was fixed in future releases please provide me a workaround solution.
Best regards,
Cotutiu Lucian.
<
TextBox
Text
=
"{Binding SalePercent}"
/>
<
telerik:RadGridView
x:Name
=
"MyGrid"
DataContextChanged
=
"MyGrid_DataContextChanged"
ItemsSource
=
"{Binding MyObservableCollection}"
ShowColumnFooters
=
"True"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Price, StringFormat=N2}"
Header
=
"Price"
>
<
telerik:GridViewDataColumn.AggregateFunctions
>
<
telerik:SumFunction
Caption
=
"Price: "
ResultFormatString
=
"{}{0:C}"
/>
</
telerik:GridViewDataColumn.AggregateFunctions
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding SalePrice, StringFormat=N2}"
Header
=
"Sale Price"
>
<
telerik:GridViewDataColumn.AggregateFunctions
>
<
telerik:SumFunction
Caption
=
"Sale Price: "
ResultFormatString
=
"{}{0:C}"
/>
</
telerik:GridViewDataColumn.AggregateFunctions
>
</
telerik:GridViewDataColumn
>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
private
void
MyGrid_DataContextChanged(
object
sender, DependencyPropertyChangedEventArgs e)
{
MyViewModel vm = MyGrid.DataContext
as
MyViewModel;
if
(vm !=
null
)
vm.PropertyChanged += MyViewModel_PropertyChanged;
MyGrid.DataContextChanged -= MyGrid_DataContextChanged;
}
void
MyViewModel_PropertyChanged(
object
sender, PropertyChangedEventArgs e)
{
if
(e.PropertyName ==
"SalePercent"
)
MyGrid.CalculateAggregates();
}
void
MyViewModel_PropertyChanged(
object
sender, PropertyChangedEventArgs e)
{
switch
(e.PropertyName)
{
case
"SalePercent"
:
foreach
(var item
in
MyObservableCollection)
item.SalePrice = item.Price * SalePercent;
break
;
}
}
TreeviewMonday.AddHandler(RadDragAndDropManager.DropQueryEvent,
new
EventHandler<DragDropQueryEventArgs>(OnDropQuery),
true
);
We currently have a DevCraft license and thought it'd be best not to reinvent the wheel in this rather little pet project, and there's no resource at the moment here who currenlty have any background to WPF. So any thoughts would be highly appreciated! Thanks!