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

Disable Scrolling for LayoutControl

1 Answer 493 Views
LayoutControl
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 14 Apr 2019, 01:25 PM

Hi, I have a hierarchy that looks something like this:

<RadLayoutControl>

  <LayoutGroup>

    <LayoutExpanderGroup>
      <SomeControl/>
    </LayoutExpanderGroup>

    <LayoutExpanderGroup>

      <RadGridView/>

    </LayoutExpanderGroup>

  </LayoutGroup>

</RadLayoutControl>

My RadGridView has many columns and rows and so causes the entire <RadLayoutControl> to scroll.  Is it possible to configure this view so that only the <LayoutExpanderGroup> that contains the <RadGridView> will scroll?

Any help would be appreciated.

1 Answer, 1 is accepted

Sort by
0
Vladimir Stoyanov
Telerik team
answered on 17 Apr 2019, 03:50 PM
Hello Thomas,

Thank you for the sample code snippet. 

In order to achieve the desired requirement, you can set the ScrollViewer.HorizontalScrollBarVisibility to "Hidden" on the RadLayoutControl. Then you can set the ScrollViewer.HorizontalScrollBarVisibility to "Visible" on the LayoutControlExpanderGroup containing the RadGridView and specify a Width for it. 

I am attaching a sample project demonstrating what I have in mind. Please, check it out and let me know, if it helps.

I am looking forward to your reply.

Regards,
Vladimir Stoyanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
LayoutControl
Asked by
Thomas
Top achievements
Rank 1
Answers by
Vladimir Stoyanov
Telerik team
Share this question
or