Exemple #1
0
        protected void AppendTopToolBar(IHtmlNode div, GridFunctionalData functionalData)
        {
            if (functionalData.ToolBar)
            {
                var toolBar = CreateToolBar(functionalData.ToolBarData);

                toolBar.AddClass("k-grid-top").AppendTo(div);
            }
        }
Exemple #2
0
        protected void AppendGroupHeader(IHtmlNode div, GridFunctionalData functionalData)
        {
            if (functionalData.GroupHeader)
            {
                var groupHeader = CreateGroupHeader(functionalData);

                groupHeader.AppendTo(div);
            }
        }
Exemple #3
0
        protected void AppendBottomPager(IHtmlNode div, GridFunctionalData functionalData)
        {
            if (functionalData.Pager)
            {
                var pager = new HtmlElement("div").AddClass("k-pager-wrap", "k-grid-pager");

                pager.AppendTo(div);

                if (functionalData.Pager)
                {
                    CreateBottomPager(functionalData.PagerData).AppendTo(pager);
                }
            }
        }
Exemple #4
0
        protected void AppendBottomPager(IHtmlNode div, GridFunctionalData functionalData)
        {
            if (functionalData.Pager)
            {
                var pager = new HtmlElement("div").AddClass("k-pager-wrap", "k-grid-pager");

                pager.AppendTo(div);

                if (functionalData.Pager)
                {
                    CreateBottomPager(functionalData.PagerData).AppendTo(pager);
                }
            }
        }
Exemple #5
0
        public virtual IHtmlNode CreateGrid(IDictionary<string, object> htmlAttributes, GridFunctionalData functionalData, GridRenderingData renderingData)
        {
            var div = CreateWrapper(htmlAttributes);

            AppendTopToolBar(div, functionalData);

            AppendGroupHeader(div, functionalData);

            AppendData(div, renderingData);

            AppendBottomPager(div, functionalData);

            return div;
        }
Exemple #6
0
        public virtual IHtmlNode CreateGrid(IDictionary <string, object> htmlAttributes, GridFunctionalData functionalData, GridRenderingData renderingData)
        {
            var div = CreateWrapper(htmlAttributes);

            AppendTopToolBar(div, functionalData);

            AppendGroupHeader(div, functionalData);

            AppendData(div, renderingData);

            AppendBottomPager(div, functionalData);

            return(div);
        }
Exemple #7
0
 protected virtual IHtmlNode CreateGroupHeader(GridFunctionalData functionalData)
 {
     return(FunctionalSectionBuilder.CreateGroupHeader(functionalData.GroupingData));
 }
Exemple #8
0
        protected void AppendGroupHeader(IHtmlNode div, GridFunctionalData functionalData)
        {
            if (functionalData.GroupHeader)
            {
                var groupHeader = CreateGroupHeader(functionalData);

                groupHeader.AppendTo(div);
            }
        }
Exemple #9
0
 protected virtual IHtmlNode CreateGroupHeader(GridFunctionalData functionalData)
 {
     return FunctionalSectionBuilder.CreateGroupHeader(functionalData.GroupingData);
 }
Exemple #10
0
        protected void AppendTopToolBar(IHtmlNode div, GridFunctionalData functionalData)
        {
            if (functionalData.ToolBar)
            {
                var toolBar = CreateToolBar(functionalData.ToolBarData);

                toolBar.AddClass("k-grid-top").AppendTo(div);
            }
        }