I'm scratching my head deep over this one..
GridView has a GridViewPinRowColumn which out of the box looks promising: it simply enables pinning of items to the top -- YAY !
BUT - i need to be able to refresh the grid with new instances of the data every now an then, so my mission is to retain the status of pinned items.
so i found this StyleStter which binds to a property on the item.
<Style TargetType="telerik:GridViewRow">
<Setter Property="IsPinned" Value="{Binding IsPinned, Mode=TwoWay}" />
</Style>
There are SOME issues with this :
1. When the GridView renders the items, it resets IsPinned to FALSE !
2. GridView doesn't have an event that fires when all items are rendered !
Let's look at issue 1:
NotifyPropertyChanged turns this into a nightmare, because, when the GridView renders the items, it resets IsPinned, which effectively negates the option to store the value either on the item itself or an external list..
Issue 2:
Even IF is could store a list of IsPinned items, while reloading the Grid, there is no event that fires when items are finished rendering. Thereby making it more or less impossible to restore pinned status
One solution would require a change request: Dont reset IsPinned when rendering the items
Or - do you have another solution to this issue ?