Пример #1
0
        private void RenderItemGrid(ComponentController paComponentController)
        {
            SubControlMobileStoreFrontGridItem lcGridItem;

            lcGridItem = new SubControlMobileStoreFrontGridItem();
            lcGridItem.IncludeExternalLinkFiles(paComponentController);
            lcGridItem.SC_LocalImagePath     = SC_LocalImagePath;
            lcGridItem.SC_UniversalImagePath = SC_UniversalImagePath;

            paComponentController.AddElementType(ComponentController.ElementType.Container);
            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSItemContainer);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_TotalRows, clTotalRows.ToString());
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_TotalPages, clTotalPages.ToString());
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_PageIndex, "0");
            paComponentController.AddElementAttribute(ComponentController.ElementAttribute.ea_PageSize, SC_PageSize.ToString());
            paComponentController.AddElementType(ComponentController.ElementType.Grid);
            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSItemGridPanel);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            foreach (DataRow lcRow in clDataTable.Rows)
            {
                lcGridItem.SetData(lcRow);
                lcGridItem.RenderChildMode(paComponentController);
            }

            paComponentController.RenderEndTag();

            RenderAjaxLoaderDiv(paComponentController);

            RenderDetailOverlayDiv(paComponentController);

            paComponentController.RenderEndTag();
        }
Пример #2
0
        private void RenderAjaxModeItemGrid(ComponentController paComponentController)
        {
            SubControlMobileStoreFrontGridItem lcGridItem;

            lcGridItem = new SubControlMobileStoreFrontGridItem();
            lcGridItem.IncludeExternalLinkFiles(paComponentController);
            lcGridItem.SC_LocalImagePath     = SC_LocalImagePath;
            lcGridItem.SC_UniversalImagePath = SC_UniversalImagePath;

            foreach (DataRow lcRow in clDataTable.Rows)
            {
                lcGridItem.SetData(lcRow);
                lcGridItem.RenderChildMode(paComponentController);
            }
        }