protected void Page_Load(object sender, EventArgs e)
    {
        if (IsSearchResult)
        {
            if (!IsPostBack)
            {
                uxSortField.SelectedIndex = 1;
            }
            uxSortField.Items[0].Enabled = false;
        }

        RegisterStoreEvents();

        uxPagingControl.BubbleEvent       += new EventHandler(uxPagingControl_BubbleEvent);
        uxItemsPerPageControl.BubbleEvent += new EventHandler(uxItemsPerPageControl_BubbleEvent);
        GetScriptManager().Navigate       += new EventHandler <HistoryEventArgs>(ScriptManager_Navigate);
        AjaxUtilities.ScrollToTop(uxGoToTopLink);

        uxList.RepeatColumns    = DataAccessContext.Configurations.GetIntValue("BundlePromotionColumn");
        uxPageControlTR.Visible = true;

        uxList.RepeatDirection = RepeatDirection.Horizontal;
        uxList.Visible         = true;

        if (!IsPostBack)
        {
            ItemPerPage = _promotionItemPerPage;
        }
    }
Exemple #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        RegisterStoreEvents();

        uxPagingControl.BubbleEvent       += new EventHandler(uxPagingControl_BubbleEvent);
        uxItemsPerPageControl.BubbleEvent += new EventHandler(uxItemsPerPageControl_BubbleEvent);
        GetScriptManager().Navigate       += new EventHandler <HistoryEventArgs>(ScriptManager_Navigate);
        AjaxUtilities.ScrollToTop(uxGoToTopLink);

        if (GetCategoryID() == "1" && CurrentCategoryName == String.Empty)
        {
            uxCategoryPageControlDiv.Visible = true;
            uxCategoryItemPageDiv.Visible    = true;
            uxCatalogImagePanel.Visible      = false;
            uxList.RepeatColumns             = NoOfCategoryColumn;
            uxList.RepeatDirection           = RepeatDirection.Horizontal;

            if (!IsPostBack)
            {
                ItemPerPage = CatalogUtilities.CategoryItemsPerPage;
            }

            Refresh();
        }
        else
        {
            uxCategoryPageControlDiv.Visible = false;
            uxCategoryItemPageDiv.Visible    = false;
            uxCatalogImagePanel.Visible      = true;
            RefreshWithoutCategory();
            PopulateCategoryImageControl();
        }
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     RegisterStoreEvents();
     uxPagingControl.BubbleEvent       += new EventHandler(uxPagingControl_BubbleEvent);
     uxItemsPerPageControl.BubbleEvent += new EventHandler(uxItemsPerPageControl_BubbleEvent);
     AjaxUtilities.ScrollToTop(uxGoToTopLink);
 }
Exemple #4
0
    // Need to generate controls here. In case of the postback, the Command or Click event
    // requires these controls to properly invoke the correct event.
    protected void Page_Load(object sender, EventArgs e)
    {
        //GetScriptManager().Navigate += new EventHandler<HistoryEventArgs>( ScriptManager_Navigate );

        GeneratePagingLinks();
        _currentPageLoading   = CurrentPage;
        _numberOfPagesLoading = NumberOfPages;

        AjaxUtilities.ScrollToTop(this);
    }
    protected void Page_Load( object sender, EventArgs e )
    {
        RegisterStoreEvents();
        AjaxUtilities.ScrollToTop( uxGoToTopLink );

        uxList.RepeatColumns = 2;
        uxList.RepeatDirection = RepeatDirection.Horizontal;

        Refresh();
    }
Exemple #6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        GetStorefrontEvents().StoreCultureChanged +=
            new StorefrontEvents.CultureEventHandler(News_StoreCultureChanged);
        uxPagingControl.BubbleEvent += new EventHandler(uxPagingControl_BubbleEvent);
        AjaxUtilities.ScrollToTop(uxGoToTopLink);

        if (!IsPostBack)
        {
            Refresh();
        }
    }
Exemple #7
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!DataAccessContext.Configurations.GetBoolValue("WishListEnabled"))
        {
            uxAddWishListImageButton.Visible = false;
        }
        else
        {
            AjaxUtilities.GetScriptManager(this).RegisterAsyncPostBackControl(uxAddWishListImageButton);

            if (!String.IsNullOrEmpty(CssClass))
            {
                uxAddWishListImageButton.CssClass = CssClass;
            }
            uxAddWishListImageButton.Text = Text;
        }
    }
Exemple #8
0
    protected void Page_Load(object sender, EventArgs e)
    {
        RegisterStoreEvents();
        uxPagingControl.BubbleEvent       += new EventHandler(uxPagingControl_BubbleEvent);
        uxItemsPerPageControl.BubbleEvent += new EventHandler(uxItemsPerPageControl_BubbleEvent);
        GetScriptManager().Navigate       += new EventHandler <HistoryEventArgs>(ScriptManager_Navigate);
        AjaxUtilities.ScrollToTop(uxGoToTopLink);

        uxList.RepeatColumns   = NoOfDepartmentColumn;
        uxList.RepeatDirection = RepeatDirection.Horizontal;

        if (!IsPostBack)
        {
            ItemPerPage = CatalogUtilities.DepartmentItemsPerPage;
        }

        Refresh();
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        PopulateCategoryControls();
        if (IsSearchResult && !IsPostBack)
        {
            uxSortField.SelectedIndex    = 1;
            uxSortField.Items[0].Enabled = false;
        }

        RegisterStoreEvents();

        uxPagingControl.BubbleEvent       += new EventHandler(uxPagingControl_BubbleEvent);
        uxItemsPerPageControl.BubbleEvent += new EventHandler(uxItemsPerPageControl_BubbleEvent);
        GetScriptManager().Navigate       += new EventHandler <HistoryEventArgs>(ScriptManager_Navigate);
        uxProductListViewType.BubbleEvent += new EventHandler(uxProductListViewType_BubbleEvent);
        AjaxUtilities.ScrollToTop(uxGoToTopLink);

        uxPageControlTR.Visible = true;

        uxList.Visible = true;
    }
Exemple #10
0
    private void SetFooterRowFocus()
    {
        Control textBox = uxGrid.FooterRow.FindControl("uxStateNameText");

        AjaxUtilities.GetScriptManager(textBox).SetFocus(textBox);
    }
    private void SetFooterRowFocus()
    {
        Control textBox = uxDiscountGrid.FooterRow.FindControl("uxToItemsText");

        AjaxUtilities.GetScriptManager(this).SetFocus(textBox);
    }
Exemple #12
0
    private void SetFooterRowFocus()
    {
        Control countryList = uxTaxClassRuleGrid.FooterRow.FindControl("uxCountryList");

        AjaxUtilities.GetScriptManager(this).SetFocus(countryList);
    }
Exemple #13
0
 private ScriptManager GetScriptManager()
 {
     return(AjaxUtilities.GetScriptManager(this));
 }
Exemple #14
0
    private void SetFooterRowFocus()
    {
        Control textBox = uxPromotionSubGroupGrid.FooterRow.FindControl("uxNameText");

        AjaxUtilities.GetScriptManager(textBox).SetFocus(textBox);
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     RegisterStoreEvents();
     element = new DynamicPageElement(this);
     AjaxUtilities.ScrollToTop(uxGoToTopLink);
 }
    private void SetFooterRowFocus()
    {
        Control textBox = uxGrid.FooterRow.FindControl("uxToOrderTotalText");

        AjaxUtilities.GetScriptManager(this).SetFocus(textBox);
    }
 private void SetFooterRowFocus()
 {
     //Control textBox = uxOptionItemGrid.FooterRow.FindControl( "uxNameText" );
     AjaxUtilities.GetScriptManager(this).SetFocus(uxNameText);
 }