LayoutCycleException when sorting

4 posts, 0 answers
  1. Alessandro
    Alessandro avatar
    24 posts
    Member since:
    May 2013

    Posted 12 Mar 2015 Link to this post

    Hi,
    I'm using DataGrid (I've updated with latest release Q1 2015)  and when I click on a header to sort the column and it works but when I click again and again so that sort indicator disappear, there's a Exception of type LayoutCycleException ! why?

    I've tried to build up a new project, Windows 8 Store App, to reproduce this scenario and put the same DataGrid with same view model etc.. In this project sorting the columns does not throw exception. The main project and the xaml page, where the exeption is happening,  is inside a Frame. May be this is the cause?

    Can you help me?

    I have other issues regarding the same DataGrid and I'll post them in other threads.

    Thanks in advance.

    Alessandro
  2. Vladislav
    Admin
    Vladislav avatar
    275 posts

    Posted 17 Mar 2015 Link to this post

    Hi Alessandro,

    We are not aware of such issue with the RadDataGrid control.
    It will be best if you can send us a sample project demonstrating the observed issue(s).
    Without a sample project, where the problem manifests itself we cannot say for sure what could be causing it.

    Thank you in advance.

    Regards,
    Vladislav
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. Alessandro
    Alessandro avatar
    24 posts
    Member since:
    May 2013

    Posted 17 Mar 2015 in reply to Vladislav Link to this post

    Hi Vladislav and thank you for replying to my question.
    The issue I reported happens when you click 3 times on header to sort the column, i.e. when the sort indicator disappear because the sort direction is "resetted" after ascending, descening.
    The datagrid does not suffer this issue if I develop a very simple page where there's only a datagrid.
    In my real project the datagrid is hosted in a page just inside a Grid and the page itself is inside a frame.
    I've never came accross such excption "LayoutCycleException" so I don't even think of what may be the cause.
    Any suggestion is very appreciated.

    Thank you

    Alessandro

  4. Vladislav
    Admin
    Vladislav avatar
    275 posts

    Posted 20 Mar 2015 Link to this post

    Hello Alessandro,

    I created a sample project based on your description, but I am unable to reproduce the described problem.
    May I ask you to review and modify it as needed in order to help us to reproduce it?
    You can use it as a starting point and add/modify whatever is necessary in order to become closer to your real project.

    Thank you in advance.

    Regards,
    Vladislav
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top