private void SetIndexSliderItems(List <ItemObject> sliderItems, HtmlGenericControl sliderList)
 {
     foreach (var item in sliderItems)
     {
         var itemDivControl = HTMLControlsManager.GetDivTag(new[] { "item" });
         sliderList.Controls.Add(itemDivControl);
         {
             var itemInnerDivControl = ItemHtmlManager.Get_ItemInner_Grid_DivControl(item);
             itemDivControl.Controls.Add(itemInnerDivControl);
         }
     }
 }
Exemple #2
0
        private void GetGridDetails()
        {
            var gridDetails = new ItemsModel().GetItemDetails(pageItemType, EnumsManager.GetSortByOption(sortBy, ascending), currentViewPerPage, (currentPage - 1) * currentViewPerPage, searchCriteria);

            foreach (var item in gridDetails)
            {
                var liControl = HTMLControlsManager.GetCustomTag("li", new[] { "item col-lg-4", "col-md-3", "col-sm-4", "col-xs-12" });
                gridItemsList.Controls.Add(liControl);
                {
                    var itemInnerDivControl = ItemHtmlManager.Get_ItemInner_Grid_DivControl(item);
                    liControl.Controls.Add(itemInnerDivControl);
                }
            }
        }
Exemple #3
0
        private void GetRelatedItemsGridDetails(List <int> itemIds, ItemType currentItemType)
        {
            var gridDetails = new ItemsModel().GetRelatedItems(currentItemType, itemIds);

            foreach (var item in gridDetails)
            {
                var itemDivControl = HTMLControlsManager.GetDivTag(new[] { "item" });
                relatedItemsGridList.Controls.Add(itemDivControl);
                {
                    var itemInnerDivControl = ItemHtmlManager.Get_ItemInner_Grid_DivControl(item);
                    itemDivControl.Controls.Add(itemInnerDivControl);
                }
            }
        }
Exemple #4
0
        private void GetListDetails()
        {
            var gridDetails = new ItemsModel().GetItemDetails(pageItemType, EnumsManager.GetSortByOption(sortBy, ascending), currentViewPerPage, (currentPage - 1) * currentViewPerPage, searchCriteria);

            foreach (var item in gridDetails)
            {
                var liControl = HTMLControlsManager.GetCustomTag("li", new[] { "item odd" });
                productsList.Controls.Add(liControl);
                {
                    var prodImageDivControl = ItemHtmlManager.Get_ProductImage_List_DivControl(item);
                    liControl.Controls.Add(prodImageDivControl);

                    var prodDetailsDivControl = ItemHtmlManager.Get_ProductDetails_List_DivControl(item);
                    liControl.Controls.Add(prodDetailsDivControl);
                }
            }
        }