CyberStore Documentation
CatalogCategoryQuickViewControl Class
Members 


Dovetail.Ecommerce.Controls Namespace : CatalogCategoryQuickViewControl Class
A catalog Category quick view control.
Remarks
Primary Control
Property Usage

By changing the values of the control's properties in the SitePages.config file for your Site, you can enable or disable certain behaviors, set certain defaults, alter aspects of the display or otherwise cusomtize your site's implementaion of the control.

The following describes properties pertaining to key functional areas of the control that can be configured to suit your needs.

Properties Inherited from the Base ListingControl

The properties contained in the ListingControl base class are available to either include or exclude certain data from the scope of Items being listed in the control.

To expand the scope of Items to be inclusive of all Items in the current Category and all of its child hierarchy, set the IncludeItemsFromAllChildCategories property to true, or conversely to limit scope just to the current Category, set its value to false.

Scope can also be limited, or expanded, based on the type of Item in the listing. Use the IncludeModelsIncludeSKUs, and IncludeStockCodes properties to do this. Set them to true to include, and false to exclude.

The ShowOnStockCodeDetailPageShowOnModelDetailPage and ShowonSKUDetailPage properties can each be used to selectively hide or show the control when on it is found on an item page based on the type of item.

The OverrideCategoryList property allows for the ListingControl to ignore the current Category in context and use a specified list of Categories as specified by a comma-separated list of Category_ID values. For example "1,5,7,124,678".

Properties Inherited from the Base CyberStoreBaseControl

Properties specific to the CyberStoreBaseControl can be listed in the following categories:

Override Properties

When the IgnoreControl property is set to true, all processing of a control is skipped, and the control's Visible property is set to false ensuring that it is not rendered in the resulting CyberStore page.

Contextual Properties

Contextual properties define specific details about the current instance of the control based on context. Context can be set by any number of factors including the log in state of the Shopper, the Site being visited, or the properties that have been established for a control.

The AttributesBag property is used internal to control processing and is the collection of attributes, or properties, and their values based on how the control is configured. The attributes in this property are set by processing the SitePages.config file as well as any specific declared property values in any registered sub controls. It allows for the passing down of all properties to a control and any registered sub controls.

The ComConfigUserData and Site_ID properties are read-only values made available to all CyberStore controls to aid in processing and establishing context about the Site and Shopper.

Sub Controls

The table below lists and describes sub controls used by the default CatalogCategoryQuickViewControl.

Sub Control Description
DataDisplayControl A data display control.
CatalogPricingControl Displays the pricing for an Item.
CatalogItemImageControl Displays the featured image and Item detail images that have a zoom feature.
CatalogOnHandQuantityDisplayControl Displays messages regarding available Item quantity and lead time.
CatalogCategoryZoomControl Displays a normal size image and all associated thumbnail size images below.
Control Markup

The following is the markup for this control.

Developer's Note:

To create a custom version of the control, copy all of the code below into a file of the same name and place it into your Site's control folder (e.g., ../YourSiteFolder/Control). The CyberStore page engine will then override the default markup with your customized version.

 

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CatalogCategoryQuickViewControl.ascx.cs" Inherits="Dovetail.Ecommerce.Controls.CatalogCategoryQuickViewControl" %>
<@ Register TagPrefix="uc1" TagName="DataDisplayControl" Src="~/Control/DataDisplayControl.ascx" >
<@ Register TagPrefix="uc1" TagName="CatalogPricingControl" Src="~/Control/CatalogPricingControl.ascx" >
<@ Register TagPrefix="uc1" TagName="CatalogItemImageControl" Src="~/Control/CatalogItemImageControl.ascx" >
<@ Register TagPrefix="uc1" TagName="CatalogOnHandQuantityDisplayControl" Src="~/Control/CatalogOnHandQuantityDisplayControl.ascx" >
<@ Register TagPrefix="uc1" TagName="CatalogCategoryZoomControl" Src="~/Control/CatalogCategoryZoomControl.ascx" >
<script type="text/javascript">
    function QuickView(categoryID) {
        $("#CategoryQuickViewPopup_PW-1").fadeOut(500);
        var evt = arguments.callee.caller.arguments[0] || window.event;
        setTimeout(function () {
            CategoryQuickViewPopup.Hide()
            HideButton(categoryID);
            $("#CategoryQuickViewPopup_PW-1").fadeIn(500);
            CategoryQuickViewPopup.ShowAtPos(evt.clientX - 280, evt.pageY - 150);
            clbkItemDetail.PerformCallback(categoryID);
        }, 600);
    }

    function QuickViewButton() {
        var evt = arguments.callee.caller.arguments[0] || window.event;
        QuickViewButton.ShowAtPos(evt.clientX evt.pageY);
    }
</script>
<script type="text/javascript">
    function QuickView2(categoryID) {

        var evt = arguments.callee.caller.arguments[0] || window.event;
        CategoryImagePopup.ShowAtPos(evt.clientX - 200, evt.pageY - 200);
        CategoryImagePopup.Hide();
        clbkCategoryImage.PerformCallback(categoryID);
    }
</script>
<div id="QuickViewButton" style="border: 1px solid red; width: 100px; height: 40px; position: absolute; display: none;">Quick View</div>
<div id="QuickViewContainer" style="float: right">
    <dx:ASPxPopupControl ID="CategoryQuickViewPopup" runat="server" ClientIDMode="Static"
        ClientInstanceName="CategoryQuickViewPopup" AutoUpdatePosition="false" AllowDragging="true" DragElement="header" Cursor="default"
        AllowResize="false" EnableAnimation="true" ShowHeader="true" HeaderText="" ShowSizeGrip="false"
        Width="562" ClientSideEvents-Init="function(s,e){CategoryQuickViewPopup.Hide();}"
        SettingsLoadingPanel-Enabled="true" CssClass="DunlopQuickView" PopupAnimationType="Fade" SettingsLoadingPanel-Delay="50" EnableCallbackAnimation="true" CloseAction="CloseButton" CloseButtonImage-Align="Left">
        <ContentCollection>
            <dx:PopupControlContentControl>
                <dx:ASPxCallbackPanel ID="clbkItemDetail" runat="server" ClientIDMode="Static" LoadingPanelStyle-CssClass="LoadingPanel" SettingsLoadingPanel-Text="Loading Quick View..." ClientInstanceName="clbkItemDetail" HideContentOnCallback="true"
                    OnCallback="clbkItemDetail_OnCallback" ClientSideEvents-BeginCallback="function(s,e){CategoryQuickViewPopup.Show();}" ClientSideEvents-EndCallback="function(s,e){hideOption();}">
                    <PanelCollection>
                        <dx:PanelContent>
                            <div id="QuickViewTop">
                                <asp:Label ID="CategoryName" runat="server" ClientIDMode="Static" CssClass="QuickViewName" />
                            </div>

                            <div id="QuickViewLeft">
                                <img id="CategoryImage" runat="server" width="250" style="cursor: pointer;" />
                                <asp:Label runat="server" ID="ClickForLargerImage" ClientIDMode="Static" class="LargerView" Text="Click for larger image" />
                            </div>
                            <div id="QuickViewRight">

                                <div id="Tabs">
                                    <div class="QuickViewTab" id="Tab1" onclick="ChangeView(1);">Options & Pricing</div>
                                    <div class="QuickViewTab" id="Tab2" onclick="ChangeView(2);">Overview</div>
                                </div>
                                <div id="Right1" class="RightBox">
                                    <dx:ASPxGridView ID="listing" runat="server" ClientIDMode="Static" ClientInstanceName="listing" OnHtmlRowCreated="ASPxGridView1_OnHtmlRowCreated" KeyFieldName="Item_ID">
                                        <Settings ShowColumnHeaders="false" ShowFooter="false" GridLines="none" ShowTitlePanel="false" />
                                        <SettingsBehavior AllowDragDrop="false" AllowFocusedRow="false" AllowGroup="false"
                                            AllowSelectByRowClick="false" AllowSelectSingleRowOnly="false" AllowSort="True" />
                                        <Columns>
                                            <dx:GridViewDataTextColumn FieldName="ShortDescription" Caption="Description Header Text"
                                                ReadOnly="true" CellStyle-CssClass="ItemListingDescriptionCol">
                                                <DataItemTemplate>
                                                    <%# DataBinder.Eval(Container.DataItem, "ShortDescription")%>
                                                </DataItemTemplate>
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="" Caption="Pricing Header" CellStyle-CssClass="CatalogItemListingConversionCol"
                                                ReadOnly="true" Settings-AllowSort="False">
                                                <DataItemTemplate>
                                                    <uc1:CatalogPricingControl ID="CatalogaddtocartInput" runat="server" Item_ID='<%# Convert.ToInt32(DataBinder.Eval(Container.DataItem, "Item_ID"))%>'
                                                        AddtoCartText="&nbsp;" />
                                                </DataItemTemplate>
                                            </dx:GridViewDataTextColumn>
                                        </Columns>
                                    </dx:ASPxGridView>
                                </div>
                                <div id="Right2" class="RightBox">
                                    <asp:Label ID="CategoryDescription" runat="server" ClientIDMode="Static" CssClass="QuickViewDescription" />
                                </div>
                            </div>
                        </dx:PanelContent>
                    </PanelCollection>
                </dx:ASPxCallbackPanel>
            </dx:PopupControlContentControl>
        </ContentCollection>
    </dx:ASPxPopupControl>
</div>

<dx:ASPxPopupControl ID="CategoryImagePopup" runat="server" ClientIDMode="Static"
    ClientInstanceName="CategoryImagePopup" AutoUpdatePosition="false" AllowDragging="true" DragElement="header"
    AllowResize="true" EnableAnimation="true" ShowHeader="true" ShowSizeGrip="false"
    Width="562" Height="500" ClientSideEvents-Init="function(s,e){CategoryImagePopup.Hide();}"
    SettingsLoadingPanel-Enabled="true" CssClass="DunlopQuickView" PopupAnimationType="Fade" SettingsLoadingPanel-Delay="50" SettingsLoadingPanel-Text="Please Wait..." EnableCallbackAnimation="true" HeaderText="">
    <ContentCollection>
        <dx:PopupControlContentControl>
            <dx:ASPxCallbackPanel ID="clbkCategoryImage" runat="server" ClientIDMode="Static" LoadingPanelStyle-CssClass="LoadingPanel" SettingsLoadingPanel-Text="Please wait..." ClientInstanceName="clbkCategoryImage" HideContentOnCallback="true"
                OnCallback="clbkCategoryImage_OnCallback" ClientSideEvents-BeginCallback="function(s,e){CategoryImagePopup.Show();}">
                <PanelCollection>
                    <dx:PanelContent>
                        <img id="CategoryImageLarge" runat="server" />
                    </dx:PanelContent>
                </PanelCollection>
            </dx:ASPxCallbackPanel>
        </dx:PopupControlContentControl>
    </ContentCollection>
</dx:ASPxPopupControl>
Inheritance Hierarchy

System.Object
   System.Web.UI.Control
      System.Web.UI.TemplateControl
         System.Web.UI.UserControl
            Dovetail.Ecommerce.ControlBases.CyberStoreBaseControl
               Dovetail.Ecommerce.ControlBases.ListingControl
                  Dovetail.Ecommerce.Controls.CatalogCategoryQuickViewControl

See Also

Reference

CatalogCategoryQuickViewControl Members
Dovetail.Ecommerce.Controls Namespace