Hi,
I'm dynamically changing VirtualizationStrategyDefinition and after that all items is disappeared from the list. If I make pull-to-refresh the list sometime items are come back but sometimes I`ve got this error:
[Type]:[NullReferenceException]
[ExceptionMessage]:[Object reference not set to an instance of an object.]
[StackTrace]:[
at Telerik.Windows.Controls.RadDataBoundListBox.IsFirstItemFirstInListSource()
at Telerik.Windows.Controls.RadVirtualizingDataControl.OnVerticalCompressionStates_StateChanging(Object sender, VisualStateChangedEventArgs e)
at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)]
[InnerException]:[none]
Im changing it in this way:
VirtualizationStrategyDefinition str = new WrapVirtualizationStrategyDefinition();
str.Orientation = System.Windows.Controls.Orientation.Horizontal;
radDataBoundListBox.VirtualizationStrategyDefinition = str;
radDataBoundListBox.ItemTemplate = (DataTemplate)((MainPage)sender).Resources["DataWarpTemplate1"];
Does anybody know how to fix this?
Victor