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

[Solved] RadDataGrid - Layout Cycle Detected on Surface Pro Touch-Enabled Device

5 Answers 117 Views
Grid for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Quake
Top achievements
Rank 1
Quake asked on 12 Sep 2013, 07:30 PM
As soon as the RadDataGrid shows on this device, an exception occurs.  Very little info is provided but the top-level message is:
"Layout Cycle Detected Layout could not complete"

datetimecolumn.png = datetimecolumn.zip
Surface_Pro.png = Surface_Pro.zip

I tried attaching a sample project and the msinfo32 dump but the forum does not allow attachments of that format.  Let me know if I can help you track down this issue.

Thanks

5 Answers, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 16 Sep 2013, 09:39 AM
Hello,

Could you please elaborate more on your scenario and also send us a code snippet? We have already fixed a bug that causes this exception(the fix will be included in our Q3 2013 BETA release) and the current problem may be related to this bug.

I am looking forward to your reply.

 

Regards,
Ivaylo Gergov
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Alan
Top achievements
Rank 1
answered on 24 May 2014, 05:15 PM
I've been banging my head against the issue for months but finally found the problem (as mentioned above all you see is an error "Layout cycle detected" and no stacktrace).

It happens when the grid is being resized, in my case caused by a resizable panel next to it which the user can expand/collapse with an animation.

If I have my datagrid columns created manually and not autogenerated I can set the DataGridColumn.SizeMode to Stretch which causes the problem. Setting this value to Fixed or Auto 'fixes' it although the behaviour isn't so nice as I want my grid to resize for all screen sizes.

Also the performance of Stretched columns when resizing the grid isn't very good and the animation looks choppy, so I guess there is too much being computed during layout changes.

Will there be a fix for this in the upcoming release? Thanks
0
Ivaylo Gergov
Telerik team
answered on 29 May 2014, 06:42 AM
Hi Alan,

I will forward your feedback to our development team and they will further investigate the issue. I will let you know when we have a progress.

I have updated your Telerik points as a token of gratitude for your valuable feedback.

Regards,
Ivaylo Gergov
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
Gregor
Top achievements
Rank 1
answered on 06 Jun 2016, 04:42 PM

Hi,

 

thx for this information, it saved a lot of time. I had the same problem on a Surface Pro 3 and only on this model. On one of the gridcolumns I had a combination of SizeMode="Stretch" and Width="400" set. Removing the Width on that column fixed the problem for me. This behavior is strange because it is limited to this model. Our app runs on other models (Surface RT/Surface 2 Pro/Surface 3) without any problems.

0
Ivaylo Gergov
Telerik team
answered on 09 Jun 2016, 01:12 PM
Hello guys,

Could you please strip some simple project which is proved to reproduce the exception?

Regards,
Ivaylo Gergov
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Grid for XAML
Asked by
Quake
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Alan
Top achievements
Rank 1
Gregor
Top achievements
Rank 1
Share this question
or