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

RadGridView column filter distinct items list height.

3 Answers 64 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Harri
Top achievements
Rank 1
Harri asked on 13 Jun 2014, 11:43 AM
Hi

I have a problem which could be solved by redusing filter distinct list (PART_DistinctValuesList) height. Problem occurs when application is running in "small screen resolution" browser (xbap), filter won't be fit inside of browser window when there are lot of items in distinct list. See picture filter_opened_when_run_in_browser.png about that problem.

Is there any easy way to change all filters list max height? I found this help http://www.telerik.com/forums/gridview-filter-fbfab7e2d676  but it didn't work when opened first time (see picture filter_first_open_maxheight_set_to_list.png) and works fine after second open (see picture filter_after_first_maxheight_set_to_list.png).

Regards
Harri

3 Answers, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 16 Jun 2014, 08:37 AM
Hello Harri,

Have you tried the second approach from the Filter goes outside the window help article (setting MaxHeight property of the PART_DistinctValuesList listbox) ?

Regards,
Yoan
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Harri
Top achievements
Rank 1
answered on 17 Jun 2014, 11:19 AM
Thanks for your answer. I had not yet tried that but now I have. It seems to be quite close to solution BUT...

We are using your themes (office_blacktheme, windows7theme, windows8theme ...) dynamically but in that solution there are theme set statically to xaml. How to get filter theme working with dynamic selected theme?

Other thing is that when I have copied that solution xaml to my code I get next error messages and I'm now unable to edit visually those layouts.
-------
Error 29 Ambiguous type reference. A type named 'FilterOperatorConverter' occurs in at least two namespaces, 'Telerik.Windows.Controls.GridView' and 'Telerik.Windows.Data'. Consider adjusting the assembly XmlnsDefinition attributes. D:\Caldinari\AWR\AWRDesktopSolution\AWRDesktopModules.CustomerModule.Peruna\WorkSpaceControlTuottajaLista.xaml 1 1 AWRDesktopModules.CustomerModule.Peruna
-------
Error 30 Ambiguous type reference. A type named 'FilterCompositionLogicalOperatorConverter' occurs in at least two namespaces, 'Telerik.Windows.Controls.GridView' and 'Telerik.Windows.Data'. Consider adjusting the assembly XmlnsDefinition attributes. D:\Caldinari\AWR\AWRDesktopSolution\AWRDesktopModules.CustomerModule.Peruna\WorkSpaceControlTuottajaLista.xaml 1 1 AWRDesktopModules.CustomerModule.Peruna
-------

That say that those two things are in those two namespaces but both are needed to be added to project to get RadGridView working. So question is: How I set references that way that filter settings are working and I'm able to edit layout visually?

Regards
Harri
0
Accepted
Yoan
Telerik team
answered on 20 Jun 2014, 09:18 AM
Hi Harri,

I would suggest to work with our Implicit Styles. Then you should not have any problems. Please check this help article, where you can find more information about them. The styles used in our themes are theme specific. You can find the styles/templates for GridView inside "Telerik.Windows.Controls.GridView.xaml" file browsing to "InstallationFolder\WPF\Themes\OfficeBlack(or Windows7/ Windows8 )\Themes" folder.

I hope this information helps.


Regards,
Yoan
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
GridView
Asked by
Harri
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Harri
Top achievements
Rank 1
Share this question
or