Scroll bar to the Telerik Data Grid Programatically

3 posts, 1 answers
  1. Syed Danish
    Syed Danish avatar
    70 posts
    Member since:
    Dec 2009

    Posted 26 Jul 2010 Link to this post

    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. Answer
    Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 26 Jul 2010 Link to this post

    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
  3. DevCraft banner
  4. Syed Danish
    Syed Danish avatar
    70 posts
    Member since:
    Dec 2009

    Posted 27 Jul 2010 Link to this post

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