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

Grouping in RadGridView - crash

3 Answers 120 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tore
Top achievements
Rank 1
Tore asked on 22 Apr 2016, 12:20 PM

Hello, I am getting the following exception when using grouping in RadGridView. The problem is that the exception seems to happen not inside my code, 
but entirely inside Telerik RadGridView control, so I cannot catch the exception. Any tips how to catch this exception or better - avoid the exception from occuring?  I using the Telerik version 2016.1.217.40. My twitter handle is @Tore_Aurstad. Nice if you got any tips, we are closing in on our release date for our client which is using the Telerik WPF library heavily. 

Thanks,

 Telerik.Windows.Controls.GridView.GridViewDataControl.NestedLayoutStrategy.GenerateScrollingStack

StackTrace:
   ved Telerik.Windows.Data.FuncExtensions.<>c__DisplayClass1`2.<ToUntypedFunc>b__0(Object item)
   ved Telerik.Windows.Controls.GridView.GridViewDataControl.NestedLayoutStrategy.GenerateScrollingStack(Object dataItem)
   ved Telerik.Windows.Controls.GridView.GridViewDataControl.NestedLayoutStrategy.ScrollRowIntoView(Object dataItem, Action`1 scrollFinishedCallback, Action scrollFailedCallback)
   ved Telerik.Windows.Controls.GridView.GridViewDataControl.ScrollRowIntoViewInternal(Object dataItem, Action`1 scrollFinishedCallback, Action scrollFailedCallback)
   ved Telerik.Windows.Controls.GridView.GridViewDataControl.<>c__DisplayClass7f.<ScrollIntoViewAsync>b__7e()
   ved System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   ved MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

3 Answers, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 26 Apr 2016, 02:14 PM
Hello,

Generally, it would be great if you can isolate the problem in a sample project. In this way, we will be able to debug it on our side. Please check this blog post for a reference.

As a workaround, you can try setting RadGridView's GroupRenderMode to Flat.

Regards,
Yoan
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Tore
Top achievements
Rank 1
answered on 28 Apr 2016, 04:17 PM
Hello, thanks for the help. We have to render the groups in the RadGridView as non-flat as we think the look and feel is too flat. Sadly, the solution I am working on is a bit too complex and large to find out how we can extract a sample project. I have at least reported to you an exception I have found, but for now I do not see a solution. Thanks for the help, anyways. Telerik controls are beautiful and great -  mostly of the time :)
0
Accepted
Yoan
Telerik team
answered on 28 Apr 2016, 04:32 PM
Hi,

Actually the GroupRenderMode.Flat does not affect the look and feel of RadGridView's groups. It represents our new virtualization mechanism with a completely new item container generator. You can check this help article for a reference.

Regards,
Yoan
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
GridView
Asked by
Tore
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Tore
Top achievements
Rank 1
Share this question
or