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

DataGrid Filtering distinct values have no scrolling

4 Answers 60 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 13 Apr 2012, 04:41 PM
Hi, 

I am using Q1 2012 wpf controls in my project.
The filter popup shows the list of distinct values that are not scrollable and thus the popup is way too long to fit on the form. all the buttons and other controls are located below the screens bottom edge and not accessible by user.

Is there a way to limit size of the listbox, to let say 10 rows and have a scrolling added? Otherwise the filtering is absolutely useless.

Please see attached image of the filter popup

4 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 16 Apr 2012, 07:45 AM
Hi,

That is very strange, since the distinct values ListBox has  a scrollbar on all of our online examples. 

1. Have you modified any styles / themes, etc.?
2. Is it possible to send us a very small dummy project that exhibits this behavior and we will immediately debug it to see what is going on and why isn't the scrollbar appearing.

Thanks in advance.

Greetings,
Ross
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Michael
Top achievements
Rank 1
answered on 03 May 2012, 07:58 PM
I have solved my problem by addind style for ListBox with setter for MaxHeigth propery.
0
Geoffrey
Top achievements
Rank 1
answered on 05 Dec 2012, 03:30 PM
Micheal, thanks for posting! We had the same issue and I was able to fix it with your post.

btw, for anyone else having the issue, here is some xaml:

<telerik:RadGridView>
            <telerik:RadGridView.Resources>
                <Style TargetType="ListBox">
                    <Setter Property="MaxHeight" Value="400"/>
                </Style>
            </telerik:RadGridView.Resources>.....
0
Christian
Top achievements
Rank 1
answered on 27 Nov 2015, 08:54 AM

Hallo Geoffrey,

I'm using Telerik.Windows.Controls.GridView for WPF, 2015.1.401.40, and had similar problems:

1 - ListView didn'd showed vertical scroll bar - setting MaxHeight to 400 brought it back

2 - but after that tracking down the scroll bar thumb didn't made the items list scroll.

Finally found the cause: Some time ago I had copied the standard style for ScrollViewer - provided by Microsoft (https://msdn.microsoft.com/en-us/library/cc278065(v=vs.95).aspx) - into my app.xaml. It was just for testing, I didn't made any changes to that!

After removing this style from the app.xaml the filter dialog worked fine.

This thread is a little bit old, but may be this helps someone...

Christian

 

 

 

 

Tags
GridView
Asked by
Michael
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Michael
Top achievements
Rank 1
Geoffrey
Top achievements
Rank 1
Christian
Top achievements
Rank 1
Share this question
or