Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _CategoryId = AlwaysConvert.ToInt(Request.QueryString["CategoryId"]);
            InitializeCatalogItems();

            // INITIALIZE ICON PATH
            _IconPath = AbleCommerce.Code.PageHelper.GetAdminThemeIconPath(this.Page);

            CGrid.DataSource = _CatalogItems;
            CGrid.DataBind();

            if (!Page.IsPostBack)
            {
                //Caption.Text = string.Format(Caption.Text, CatalogNode.Name);

                //SET THE CURRENT PATH
                IList <CatalogPathNode> currentPath = CatalogDataSource.GetPath(_CategoryId, false);
                CurrentPath.DataSource = currentPath;
                CurrentPath.DataBind();

                //INITIALIZE THE TREE
                InitializeCategoryTree();
            }

            if (_Categories != null && _Categories.Count > 0 && MoveOptions.Items.Count > 2)
            {
                MoveOptions.Items.RemoveAt(2);
            }
        }