YASP Blog

All about Office 365, SharePoint, ASP.NET and web development in general

Main menu

Skip to content
  • Home
  • About
  • Samples

Search

Tag Archives: List Field Iterator

September 23, 2012

Metadata Navigation in SharePoint 2010: customizing KeyFilters control

As described in Metadata navigation overview (SharePoint Server 2010), metadata navigation  includes the following user controls:

  • Navigation hierarchies   Use and expand the capabilities of list views to navigate hierarchies of folders, content types, choice fields, or managed metadata term sets. This allows users to use list views to filter on a metadata hierarchy just like navigating folders
  • Key Filters   This control appears below the site hierarchy control and can consist of several fields such as date, choice, content type, single and multi-value fields, currency, yes / no, and user fields. Any number of key filters can be applied in combination with a selected navigation hierarchy.

Navigation hierarchies and KeyFilter user controls registration  and also rendering templates for KeyFilter control are defined in MetadataNavTree.ascx and MetadataNavKeyFilters.ascx files.

Our goal here to show possible ways on how  KeyFilters control could be customized from the UI perspective.

Below is represented diagram on how KeyFilters control is rendered.

KeyFilters control diagram

Depending on field type different rendering templates for composite field are applied as shown in table below.

Composite field rendering template name Field type
KeyFiltersCompositeFieldRangeCapable for range capable field  such as Choice
KeyFiltersCompositeFieldUser User
KeyFiltersCompositeFieldDefault default rendering template for key filters composite field

But KeyFilter control has some limited functionality regarding customizing List Field Iterator  and composite field templates, for example it is not possible to specify alternative templates for composite field templates.

One of the possible ways for making KeyFilters control UI customization more flexible is to extend it by allowing to specify custom templates  for composite fields.

Project with custom Key Filters control implementation  is located here.

Resulting page with custom KeyFilters control and custom rendering templates applied  is shown below. In this example control field label and value in composite fields rendering templates are rendered  in one row mode.

KeyFilters Control

References

Source code

  • Posted in ECM, SharePoint, SharePoint 2010
  • Tagged Field Type, Key Filters, List Field Iterator, Metadata Navigation, Rendering Templates
  • Leave a comment

Post navigation

profile for Vadim Gremyachev on Stack Exchange, a network of free, community-driven Q&A sites

Recent Posts

  • Consume SharePoint Online REST service using .NET
  • Consuming the SharePoint Online REST API from PowerShell: Part 2
  • Enterprise Keywords management in Office 365 via CSOM
  • An alternative way of getting Client Object properties using SharePoint REST and CSOM APIs
  • Manage User Custom Actions in Office 365

Archives

  • April 2015
  • January 2015
  • November 2014
  • September 2014
  • August 2014
  • July 2014
  • May 2014
  • April 2014
  • March 2014
  • February 2014
  • January 2014
  • November 2013
  • October 2013
  • September 2013
  • August 2013
  • June 2013
  • May 2013
  • April 2013
  • March 2013
  • February 2013
  • January 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012
  • July 2012
  • May 2012
  • April 2012
  • July 2010

Categories

  • ASP.NET
  • ASP.NET WebForms
  • ECM
  • Google Analytics
  • Google API
  • Google Chart Tools
  • Google Maps
  • JavaScript
  • JQuery
  • Nintex
  • Nintex Workflow
  • Office 365
  • OSS
  • PHP
  • PowerShell
  • SharePoint
  • SharePoint 2010
  • SharePoint 2013
  • SharePoint Online
  • Uncategorized
  • XSLT
  • YouTube

Meta

  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.com
Create a free website or blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Follow Following
    • YASP Blog
    • Join 140 other followers
    • Already have a WordPress.com account? Log in now.
    • YASP Blog
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...