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

GridView Issue with Horizontal ScrollBar

2 Answers 152 Views
GridView
This is a migrated thread and some comments may be shown as answers.
sam Aryan
Top achievements
Rank 1
sam Aryan asked on 16 Mar 2011, 04:41 PM
Hi there,

If im using 100% the Width of the Grid  <telerik:GridViewDataColumn Header="FirstName" Width="*" /> and wrapping with the scroll bar. Why the column goes out of the frame horizontally. but if i takeout the scroll bar everything seems perfect. And I want the scroll bar to be there.

Example:
<ScrollViewer BorderBrush="Transparent" BorderThickness="0" HorizontalScrollBarVisibility="Auto" >
         <telerik:RadGridView Grid.Row="1" ScrollMode="Deferred"    ShowGroupPanel="False"  AutoGenerateColumns="False">
                    <telerik:RadGridView.Columns>
                        <telerik:GridViewDataColumn Header="First Name" Width="200" />
                        <telerik:GridViewDataColumn Header="Last Name" Width="*" />
                        <telerik:GridViewDataColumn Header="Title" Width="200" />
                    </telerik:RadGridView.Columns>
                </telerik:RadGridView>
            </Grid>
</ScrollViewer>

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 16 Mar 2011, 04:44 PM
Hello,

 ScrollViewer will measure with infinity. Why you want to use ScrollViewer instead default RadGridView scrolling?

Kind regards,
Vlad
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
sam Aryan
Top achievements
Rank 1
answered on 16 Mar 2011, 05:59 PM
Hi there,

Well the reason im using scrollviewer is because of the page.. Im wrapping the whole page with that. Do you guys have Scroll bar control.
Tags
GridView
Asked by
sam Aryan
Top achievements
Rank 1
Answers by
Vlad
Telerik team
sam Aryan
Top achievements
Rank 1
Share this question
or