CyberStore Documentation
EnableFilterModeSelection Property
Example 


Dovetail.Ecommerce.Controls Namespace > ShoppingCartQuickEntryControl Class : EnableFilterModeSelection Property
Gets or sets a value indicating whether the filter mode selection is enabled. Introduced in v2.15.6.

Property Value

Type: Boolean

A boolean value that specifies whether or not to allow the shopper to choose between an "Exact" and look-up search mode (either "Contains" or "StartsWith").

The default is false.

Remarks

When the EnableFilterModeSelection property is set to true, the ShoppingCartQuickEntryControl control will present the shopper with a Filter Mode Selector interface that allows them to switch between an "Exact" and "Search" mode.

By default, the property value is false, which hides the Filter Mode Selector completely from view.

When the shopper first visits a page with the ShoppingCartQuickEntryControl is present, and the property value is true, the initial mode selection will be set the value of the StockCodeFilterMode, and if the value is set to "Exact" the search option will only be available as a "Contains" search. 

Example
See an example of how to configure this control in SitePages.config.
<!-- Example 1:
     Configuration enabling Filter Mode Selection, 
     defaulting to a "StartsWith" search 
-->
<Control src="ShoppingCartQuickEntryControl.ascx" Name="QuickEntry"
    StockCodeFilterMode="StartsWith"
    EnableFilterModeSelection="true"
    .
    .
    .

 />

<!-- Example 2:
     Configuration enabling Filter Mode Selection, 
     defaulting to a "Contains" search 
-->
<Control src="ShoppingCartQuickEntryControl.ascx" Name="QuickEntry"
    StockCodeFilterMode="Contains"
    EnableFilterModeSelection="true"
    .
    .
    .

 />

<!-- Example 3:
     Configuration enabling Filter Mode Selection, 
     defaulting to a "Exact", Search optin will do a "Contains" search 
-->
<Control src="ShoppingCartQuickEntryControl.ascx" Name="QuickEntry"
    StockCodeFilterMode="Exact"
    EnableFilterModeSelection="true"
    .
    .
    .

 />
See Also

Reference

ShoppingCartQuickEntryControl Class
ShoppingCartQuickEntryControl Members