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

Scrollbar inconsistency & filter problem

1 Answer 103 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Donald Hylton
Top achievements
Rank 1
Donald Hylton asked on 17 Feb 2010, 07:27 PM
I am running 2009.3.1322.35. I have a RadGridView in a StackPanel in a Popup. My problem is that the first time the popup appears the horizontal scrollbar for the RadGridView is either not visible or is visible but does not allow one to scroll and see all of the text. The scrollbar works properly the second time the popup is visible.

 

 

<Popup IsOpen="{Binding Path=ValidSoftwareIsOpen, Mode=OneWay}"

 

 

AllowsTransparency="True"

 

 

PopupAnimation="Slide"

 

 

Placement="Center"

 

 

Width="Auto"

 

 

Height="Auto"

 

 

PlacementTarget="{Binding ElementName=avionicsviewBorder }"

 

 

Name="validSoftware"

 

 

StaysOpen="True"

 

 

>

 

 

 

<Border BorderThickness="5" BorderBrush="Black" Opacity="1" Width="Auto"

 

 

Height="Auto" CornerRadius="5,5,5,5">

 

 

 

<StackPanel Width="Auto" Height="Auto" Background="{DynamicResource popupBackgroundBrush}" Margin="0" Opacity="1">

 

 

 

<Border Style="{DynamicResource propertiesPopupBorder}" Background="{DynamicResource titleBarBrush}">

 

 

 

<Label FontSize="16" Foreground="White" >

 

Valid Software

 

 

</Label>

 

 

 

</Border>

 

 

 

 

<telerik:RadGridView

 

 

Name="ValidSoftwareListView"

 

 

ItemsSource="{Binding Path=AircraftSoftwareValidCollection}"

 

 

CanUserInsertRows="False"

 

 

SnapsToDevicePixels="True"

 

 

HeaderRowStyle="{DynamicResource radGridViewHeaderStyle}"

 

 

AutoGenerateColumns="False"

 

 

IsReadOnly="True"

 

 

Width="300"

 

 

ColumnsWidthMode="Auto"

 

 

telerik:StyleManager.Theme="Office_Black"

 

 

FontSize="12"

 

 

>

 

 

 

<telerik:RadGridView.Columns>

 

 

 

<telerik:GridViewDataColumn Header="Name" UniqueName="SoftwareName" DataMemberBinding="{Binding Path=Name}" Width="Auto"/>

 

 

 

<telerik:GridViewDataColumn Header="CSCI" UniqueName="SoftwareCsci" DataMemberBinding="{Binding Path=Csci}" Width="Auto"/>

 

 

 

<telerik:GridViewDataColumn Header="Current" UniqueName="SoftwareCurrent" DataMemberBinding="{Binding Path=Current}" Width="Auto"/>

 

 

 

<telerik:GridViewDataColumn Header="Replacement" UniqueName="SoftwareReplacement" DataMemberBinding="{Binding Path=Replacement}" Width="Auto"/>

 

 

 

</telerik:RadGridView.Columns>

 

 

 

</telerik:RadGridView>

 

 

 

<Button Template="{DynamicResource GlassButton}" Content="Ok" HorizontalAlignment="Right"

 

 

VerticalAlignment="Center"

 

 

Command="{Binding Path=OkCommand}" Style="{DynamicResource bottomButtonStyle}"/>

 

 

 

</StackPanel>

 

 

 

</Border>

 

 

 

</Popup>

I tried replacing the StackPanel with a grid with no sucess.

Another issue I have is that if my application window is full screen and I have my popup centered in the window and I click on a filter the filter popup does not show all the fields. This is not a problem when the application window is not full screen. 

Donald

 

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 22 Feb 2010, 09:26 AM
Hello Donald Hylton,

Can you try placing RadGridView inside a container which does not measure with infinity, i.e. it has fixed Width instead if Auto. Such controls are ScrollViewer,  StackPanel (when vertical it measures with infinite height and when horizontal - with infinite width), and Grid panel with RowDefinition Height="Auto" or ColumnDefinition Width="Auto". When RadGridView (or any other grid) is measured with infinity virtualization is turned off which results in reduced performance.

If this does not help, please send us your sample project and we will take a look at it in order to determine what is going wrong. Also, tell us the exact steps that we will need to take in order to reproduce the issues you are faced with.

Greetings,
Ross
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.
Tags
GridView
Asked by
Donald Hylton
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or