Grouping in RadGridView - crash

4 posts, 1 answers
  1. Tore
    Tore avatar
    9 posts
    Member since:
    Dec 2012

    Posted 22 Apr Link to this post

    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)

  2. Yoan
    Admin
    Yoan avatar
    1066 posts

    Posted 26 Apr Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Tore
    Tore avatar
    9 posts
    Member since:
    Dec 2012

    Posted 28 Apr Link to this post

    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 :)
  5. Answer
    Yoan
    Admin
    Yoan avatar
    1066 posts

    Posted 28 Apr Link to this post

    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.
Back to Top