RadGridView column filter distinct items list height.

4 posts, 1 answers
  1. Harri
    Harri avatar
    9 posts
    Member since:
    Dec 2012

    Posted 13 Jun 2014 Link to this post

    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
  2. Yoan
    Admin
    Yoan avatar
    1213 posts

    Posted 16 Jun 2014 Link to this post

    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.
     
  3. Harri
    Harri avatar
    9 posts
    Member since:
    Dec 2012

    Posted 17 Jun 2014 in reply to Yoan Link to this post

    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
  4. Answer
    Yoan
    Admin
    Yoan avatar
    1213 posts

    Posted 20 Jun 2014 Link to this post

    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.
     
Back to Top