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

Scroll bar to the Telerik Data Grid Programatically

2 Answers 87 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Syed Danish
Top achievements
Rank 1
Syed Danish asked on 26 Jul 2010, 03:35 PM
Hi,

I am facing a peculier problem with the Scroll bar. I made a custom grid control out of Telerik Data grid, this control contains the dynamic columns, with dynamic paging. I am not able to set the scroll bar of the grid programatically. I placed the controls the pager and the grid in the stack panel. I get the error message "Cycle Layout Detected layout could not complete". Where is the problem? Can any one help me out.

Thanks and Regards,
Syed Danish

2 Answers, 1 is accepted

Sort by
0
Accepted
Vanya Pavlova
Telerik team
answered on 26 Jul 2010, 04:58 PM
Hello Syed Danish,

Replace the StackPanel you used with normal Grid - when a RadGridView is placed in StackPanel, ScrollViewer or Grid with Row.Height set to auto the virtualization is turned off.

Regards,
Vanya Pavlova
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Syed Danish
Top achievements
Rank 1
answered on 27 Jul 2010, 11:52 AM
Hi Vanya Pavlova,

Thanks for the quick reply. The I changed the stack panel to Layout Grid and made and made the Data Grid fit into the Layout grid and this worked for me. Thanks again.

Thanks and Regards,
Syed Danish
Tags
GridView
Asked by
Syed Danish
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Syed Danish
Top achievements
Rank 1
Share this question
or