This question is locked. New answers and comments are not allowed.
Hi,
I'm using combobox as celltemplate in radgridview [Please note that I cannot use RadCobBoxColumn since every row can have different type of control]. The problem is when the grid is scrolled {combobox wrow will not be visible and scrolling back causes} ,the Selected Item of ComboBox is Set to null. The call stack of shows following details which shows that issue may be caused by ItemsGenerator when comobox is made visble agian.
Some details are removed to make it simple
Is there a way to get around this problem?
Regards,
Deepak N
I'm using combobox as celltemplate in radgridview [Please note that I cannot use RadCobBoxColumn since every row can have different type of control]. The problem is when the grid is scrolled {combobox wrow will not be visible and scrolling back causes} ,the Selected Item of ComboBox is Set to null. The call stack of shows following details which shows that issue may be caused by ItemsGenerator when comobox is made visble agian.
Some details are removed to make it simple
| > Converters.NullCheckConverter.ConvertBack(object value = null, System.Type targetType = {System.Object}, object parameter = null, System.Globalization.CultureInfo culture = {en-US}) Line 16 C#<br> System.Windows.dll!System.Windows.Data.BindingExpression.UpdateValue() + 0xd6 bytes <br> System.Windows.dll!System.Windows.Data.BindingExpression.UpdateValueIfNecessary() + 0x32 bytes <br> System.Windows.dll!System.Windows.Data.BindingExpression.TargetPropertyChanged(System.Windows.DependencyObject sender, System.Windows.DependencyProperty dp = {System.Windows.CustomDependencyProperty}) + 0x2d bytes <br> System.Windows.dll!System.Windows.DependencyObject.OnPropertyChanged(System.Windows.DependencyProperty dp = {System.Windows.CustomDependencyProperty}) + 0x34 bytes <br> System.Windows.dll!System.Windows.FrameworkElement.OnPropertyChanged(System.Windows.DependencyProperty dp) + 0x6f bytes <br> System.Windows.dll!System.Windows.Controls.Primitives.Selector.OnPropertyChanged(System.Windows.DependencyProperty dp = {System.Windows.CustomDependencyProperty}) + 0x20 bytes <br> System.Windows.dll!System.Windows.DependencyObject.SetValueInternal(System.Windows.DependencyProperty dp = {System.Windows.CustomDependencyProperty}, object value = null, bool allowReadOnlySet = false, bool isSetByStyle = false, bool isSetByBuiltInStyle = false, System.Windows.PropertyInvalidationReason reason = SetValue) + 0x506 bytes <br> System.Windows.dll!System.Windows.DependencyObject.SetValueInternal(System.Windows.DependencyProperty dp, object value) + 0x23 bytes <br> System.Windows.dll!System.Windows.DependencyObject.SetValue(System.Windows.DependencyProperty dp, object value) + 0x1b bytes <br> System.Windows.dll!System.Windows.Controls.Primitives.Selector.SelectedItem.set(object value) + 0x37 bytes <br> System.Windows.dll!System.Windows.Controls.Primitives.Selector.UpdatePublicSelectionProperties(int oldSelectedIndex = 1, int newSelectedIndex = -1, object oldSelectedItem = <OLD ITEM>, object newSelectedItem = null) + 0x3e bytes <br> System.Windows.dll!System.Windows.Controls.Primitives.Selector.SelectionChanger.End() + 0x16e bytes <br> System.Windows.dll!System.Windows.Controls.Primitives.Selector.OnItemsChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs e = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) + 0x821 bytes <br> System.Windows.dll!System.Windows.Controls.ItemsControl.OnItemCollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) + 0x78 bytes <br> System.Windows.dll!System.Windows.Controls.ItemCollection.NotifyCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs e = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) + 0x43 bytes <br> System.Windows.dll!System.Windows.Controls.ItemCollection.UpdateItemsSourceList(System.Collections.IEnumerable newItemsSource) + 0x8c bytes <br> System.Windows.dll!System.Windows.Controls.ItemsControl.ItemsSourceChanged(System.Windows.DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e) + 0xa5 bytes <br> System.Windows.dll!System.Windows.DependencyObject.RefreshExpression(System.Windows.DependencyProperty dp = {System.Windows.CustomDependencyProperty}) + 0x173 bytes <br> System.Windows.dll!System.Windows.Data.BindingExpression.RefreshExpression() + 0x1b bytes <br> System.Windows.dll!System.Windows.Data.BindingExpression.SendDataToTarget() + 0x58 bytes <br> System.Windows.dll!System.Windows.Data.BindingExpression.SourceAquired() + 0x35 bytes <br> System.Windows.dll!System.Windows.Data.BindingExpression.DataContextChanged(object o, System.Windows.DataContextChangedEventArgs e) + 0x46 bytes <br> System.Windows.dll!System.Windows.FrameworkElement.OnDataContextChanged(System.Windows.DataContextChangedEventArgs e = {System.Windows.DataContextChangedEventArgs}) + 0x34 bytes <br> System.Windows.dll!System.Windows.FrameworkElement.OnAncestorDataContextChanged(System.Windows.DataContextChangedEventArgs e = {System.Windows.DataContextChangedEventArgs}) + 0x2b bytes <br> System.Windows.dll!System.Windows.FrameworkElement.NotifyDataContextChanged(System.Windows.DataContextChangedEventArgs e = {System.Windows.DataContextChangedEventArgs}) + 0x86 bytes <br> System.Windows.dll!System.Windows.FrameworkElement.OnPropertyChanged(System.Windows.DependencyProperty dp = {System.Windows.CoreDependencyProperty}) + 0x63 bytes <br> System.Windows.dll!System.Windows.DependencyObject.RaisePropertyChangeNotifications(System.Windows.DependencyProperty dp = {System.Windows.CoreDependencyProperty}, object newValue = null, object oldValue = <THE OLD VALUE><br> System.Windows.dll!System.Windows.DependencyObject.SetValueInternal(System.Windows.DependencyProperty dp = {System.Windows.CoreDependencyProperty}, object value = null, bool allowReadOnlySet = false, bool isSetByStyle = false, bool isSetByBuiltInStyle = false, System.Windows.PropertyInvalidationReason reason = SetValue) + 0x7cc bytes <br> System.Windows.dll!System.Windows.DependencyObject.SetValueInternal(System.Windows.DependencyProperty dp, object value) + 0x23 bytes <br> System.Windows.dll!System.Windows.DependencyObject.SetValue(System.Windows.DependencyProperty dp, object value) + 0x1b bytes <br> System.Windows.dll!System.Windows.FrameworkElement.DataContext.set(object value) + 0x37 bytes <br> Telerik.Windows.Controls.GridView!Telerik.Windows.Controls.GridView.BaseItemsControl.RecycleContainer(System.Windows.FrameworkElement container = {Telerik.Windows.Controls.GridView.GridViewRow}) + 0x26 bytes <br> Telerik.Windows.Controls.GridView!Telerik.Windows.Controls.GridView.ItemsGenerator.ReleaseUnusedContainers() + 0x83 bytes <br> Telerik.Windows.Controls.GridView!Telerik.Windows.Controls.GridView.BaseVirtualizingPanel.MeasureOverride(System.Windows.Size availableSize = {Infinity,Infinity}) + 0x501 bytes <br> System.Windows.dll!System.Windows.FrameworkElement.MeasureOverride(System.IntPtr nativeTarget = 270918624, float inWidth = Infinity, float inHeight = Infinity, out float outWidth = 0.0, out float outHeight = 0.0) + 0xdd bytes <br> [Appdomain Transition] <br><br> |
Is there a way to get around this problem?
Regards,
Deepak N
