I'm using the RadCollectionNavigator in a WPF UserControl.
The CurrentItem Is Bound, TwoWay to a DataContext property.
Everytime I navigate using the RCN's navigation buttons the CurrentItem setter is called 3 times.
I using ReferenceEquals() to ignore additional calls to the setter with the same value but this causes other problems.
Will I need to override the built in navigation buttons to eliminate this behavior?
<telerik:RadCollectionNavigator Source="{Binding EvidenceItems}" CurrentItem="{Binding CurrentNavItem, Mode=TwoWay}"/>
private EvidenceGridData _CurrentNavItem;
public object CurrentNavItem
{
get { return _CurrentNavItem; }
set
{
if (ReferenceEquals(_CurrentNavItem, value))
return;
_CurrentNavItem = value as EvidenceGridData;
RaisePropertyChanged(nameof(CurrentNavItem));
}
}
Hello
is it possible, to bind the Edit-Button to a Command in ViewModel?
If it's not possible: could i place a Custom-Button (with VM-Command-Binding) inside the RadCollectionNavigator?
Kind regards
Birgit
Hello,
i used your example of the documentation, about the RadCollectionNavigator, but I did not found any information how to autoscroll the Listbox, if the MovetoNextButton or MoveToLastItem is clicked and the Listbox size is to small to show all item without scrollbar.
Does the Controls have such kind of feature out of the box and best case MVVM friendly? Or do you have any suggestion how to implement this feature for a good customer experience? If possible I would like to avoid the datapager control.
Best regards,
Dirk