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

Filter Menu Position / Size

4 Answers 79 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 07 Dec 2010, 10:20 PM
Hi.. I have grid at the bottom of a form. When a user clicks on the header to filter the fitler menu extends below the form and off the screen. And the user can't select the options.
How I can make the menu open 'up' - instead of down. Or make the menu appear totally on the form?
thanks in advance

4 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 08 Dec 2010, 11:33 AM
Hello Jon,

You need to adjust the FilteringControl by using the following options:

If you have a grid with limited height do you need the full list of options that offers?
1. You may set the following properties of a GridViewDataColumn to False in order to control different options of the FilteringControl: 
       -ShowDistinctFilters-show/hide the top part
       -ShowFieldFilters-show/hide the bottom part 

2. Also you may edit the template of FilteringControl and adjust it in the way you need, decrease the height of the ListBox that contains DistinctValues, change the position of the Close button etc.

3. In order to control whether or not the Filtering PopUp will be "opened up" or "opened down" you need to control the Popup control that it is used internally, this could be a time consuming task. 

Think about the suggestions above and let me know how these works for you. Also you may use the attached project which you can modify and sent it back if you need any additional information.

Greetings,
Vanya Pavlova
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Jon
Top achievements
Rank 1
answered on 10 Dec 2010, 08:22 PM
How do I edit the template of the filter control so the list is smaller?
thanks again
0
Vanya Pavlova
Telerik team
answered on 11 Dec 2010, 04:54 PM
Hi Jon,

 
You will made the ListBox within FilteringControl's template smaller through setting Height/Width property to a fixed value of the PART_DistinctValuesList. In a similar way you may adjust the rest of its layout in an appropriate manner.

Please find a sample that demonstrates this approach.

Kind regards,
Vanya Pavlova
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Twistur
Top achievements
Rank 1
answered on 18 Jan 2012, 12:57 AM
Vanya, I would appreciate it highly if you could just show the template explorer in the screenshot so we would know where exactly this PART_DistinctValuesList is found.

Tags
GridView
Asked by
Jon
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Jon
Top achievements
Rank 1
Twistur
Top achievements
Rank 1
Share this question
or