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

[Solved] LayoutCycleException when sorting

3 Answers 98 Views
DataGrid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alessandro
Top achievements
Rank 2
Alessandro asked on 12 Mar 2015, 08:52 PM
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

3 Answers, 1 is accepted

Sort by
0
Vladislav
Telerik team
answered on 17 Mar 2015, 06:45 AM
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.

 
0
Alessandro
Top achievements
Rank 2
answered on 17 Mar 2015, 02:28 PM
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

0
Vladislav
Telerik team
answered on 20 Mar 2015, 08:57 AM
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.

 
Tags
DataGrid
Asked by
Alessandro
Top achievements
Rank 2
Answers by
Vladislav
Telerik team
Alessandro
Top achievements
Rank 2
Share this question
or