This is a migrated thread and some comments may be shown as answers.

RADGridView IsExpandable Updating on Column Sort

1 Answer 89 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 16 Jun 2011, 04:42 PM
Hello,

We have an issue with a radgridview where we have custom expandability setup on the rows. When we sort on a column, the rows that have IsExpandable set to false get set back to true after the sort has happened. We set up a custom binding for the IsExpandable properties on the rows that have it set to false initially to get an idea of whats happening to cause it to go back to true on the sort. Here is the callstack:
FieldBridgeApp.exe!FieldBridgeApp.ProviderActionsGrid.set_IsExpandableProperty(Boolean value) Line 41    Basic
[Native to Managed Transition]    
[Managed to Native Transition]    
PresentationFramework.dll!MS.Internal.Data.PropertyPathWorker.SetValue(object item, object value) + 0xb1 bytes    
PresentationFramework.dll!MS.Internal.Data.ClrBindingWorker.UpdateValue(object value) + 0x70 bytes    
PresentationFramework.dll!System.Windows.Data.BindingExpression.UpdateSource(object value) + 0x80 bytes    
PresentationFramework.dll!System.Windows.Data.BindingExpressionBase.UpdateValue() + 0x62 bytes    
PresentationFramework.dll!System.Windows.Data.BindingExpression.Update(bool synchronous) + 0x60 bytes    
PresentationFramework.dll!System.Windows.Data.BindingExpressionBase.Dirty() + 0x33 bytes    
PresentationFramework.dll!System.Windows.Data.BindingExpression.SetValue(System.Windows.DependencyObject d, System.Windows.DependencyProperty dp, object value) + 0x27 bytes    
WindowsBase.dll!System.Windows.DependencyObject.SetValueCommon(System.Windows.DependencyProperty dp, object value, System.Windows.PropertyMetadata metadata, bool coerceWithDeferredReference, System.Windows.OperationType operationType, bool isInternal) + 0x229 bytes    
WindowsBase.dll!System.Windows.DependencyObject.SetValue(System.Windows.DependencyProperty dp, object value) + 0x2e bytes    
Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewRow.IsExpandable.set(bool value) + 0x4d bytes    
Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.InitializeHierarchyProperties(Telerik.Windows.Controls.GridView.GridViewRow gridViewRow) + 0x48 bytes    
Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.PrepareContainerForItemOverride(System.Windows.DependencyObject element, object item) + 0x1a4 bytes    
Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.BaseItemsControl.Telerik.Windows.Controls.GridView.IGeneratorHost.PrepareItemContainer(System.Windows.DependencyObject container, object item) + 0x89 bytes    
Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewItemContainerGenerator.System.Windows.Controls.Primitives.IItemContainerGenerator.PrepareItemContainer(System.Windows.DependencyObject container) + 0x52 bytes    
Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.InsertContainer(int childIndex, System.Windows.UIElement container, bool isRecycled) + 0x189 bytes    
Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.InsertRecycledContainer(int childIndex, System.Windows.UIElement container) + 0x2a bytes    
Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.AddContainerFromGenerator(int childIndex, System.Windows.UIElement child, bool newlyRealized) + 0x96 bytes    
Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MeasureOverride(System.Windows.Size constraint) + 0xed8 bytes    
PresentationFramework.dll!System.Windows.FrameworkElement.MeasureCore(System.Windows.Size availableSize) + 0x1d0 bytes    
PresentationCore.dll!System.Windows.UIElement.Measure(System.Windows.Size availableSize) + 0x337 bytes    
PresentationCore.dll!System.Windows.ContextLayoutManager.UpdateLayout() + 0x1c4 bytes    
PresentationCore.dll!System.Windows.UIElement.UpdateLayout() + 0x16 bytes    
PresentationCore.dll!System.Windows.Interop.HwndSource.Process_WM_SIZE(System.Windows.UIElement rootUIElement, System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam) + 0x2d0 bytes    
PresentationCore.dll!System.Windows.Interop.HwndSource.LayoutFilterMessage(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) + 0x160 bytes    
WindowsBase.dll!MS.Win32.HwndWrapper.WndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) + 0xbe bytes    
WindowsBase.dll!MS.Win32.HwndSubclass.DispatcherCallbackOperation(object o) + 0x7a bytes    
WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, object args, bool isSingleParameter) + 0x8a bytes    
WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.TryCatchWhen(object source, System.Delegate callback, object args, bool isSingleParameter, System.Delegate catchHandler) + 0x4a bytes    
WindowsBase.dll!System.Windows.Threading.Dispatcher.WrappedInvoke(System.Delegate callback, object args, bool isSingleParameter, System.Delegate catchHandler) + 0x44 bytes    
WindowsBase.dll!System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority priority, System.TimeSpan timeout, System.Delegate method, object args, bool isSingleParameter) + 0x91 bytes    
WindowsBase.dll!System.Windows.Threading.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority priority, System.Delegate method, object arg) + 0x40 bytes    
WindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam) + 0xdc bytes    
[Native to Managed Transition]    
WindowsBase.dll!MS.Win32.HwndSubclass.DefWndProcWrapper(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam) + 0x78 bytes    
[Native to Managed Transition]    
[Managed to Native Transition]    
WindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam) + 0x125 bytes    
[Native to Managed Transition]    
[Managed to Native Transition]    
WindowsBase.dll!System.Windows.Threading.Dispatcher.GetMessage(ref System.Windows.Interop.MSG msg, System.IntPtr hwnd, int minMessage, int maxMessage) + 0x76 bytes    
WindowsBase.dll!System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame frame) + 0x8b bytes    
WindowsBase.dll!System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame frame) + 0x49 bytes    
WindowsBase.dll!System.Windows.Threading.Dispatcher.Run() + 0x4c bytes    
PresentationFramework.dll!System.Windows.Application.RunDispatcher(object ignore) + 0x1e bytes    
PresentationFramework.dll!System.Windows.Application.RunInternal(System.Windows.Window window) + 0x6f bytes    
PresentationFramework.dll!System.Windows.Application.Run(System.Windows.Window window) + 0x26 bytes    
PresentationFramework.dll!System.Windows.Application.Run() + 0x19 bytes    
FieldBridgeApp.exe!FieldBridgeApp.Application.Main() Line 91 + 0xa bytes    Basic
[Native to Managed Transition]    
[Managed to Native Transition]    
mscorlib.dll!System.AppDomain.ExecuteAssembly(string assemblyFile, System.Security.Policy.Evidence assemblySecurity, string[] args) + 0x3a bytes    
Microsoft.VisualStudio.HostingProcess.Utilities.dll!Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() + 0x2b bytes    
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart_Context(object state) + 0x66 bytes    
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x6f bytes    
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart() + 0x44 bytes    

We are trying to figure out why this is happening. We would like those rows to stay unexpandable.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 20 Jun 2011, 10:26 AM
Hi Peter,

I have used the sample project from this blog post to test the issue you reported. However, I was not able to. May you take a look at the application to verify whether its settings are similar to yours and whether you can get the same undesired behavior on it ?
 

Greetings,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Peter
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or