Beispiel #1
0
        protected override IHtmlNode CreateHeader(GridRenderingData renderingData)
        {
            var header = new HtmlElement("div").AddClass("k-grid-header");

            var headerWrapper = new HtmlElement("div").AddClass("k-grid-header-wrap");

            headerWrapper.AppendTo(header);

            var table = CreateTable(renderingData);

            table.AppendTo(headerWrapper);

            var thead = DataSectionBuilder.CreateHeader(renderingData);

            thead.AppendTo(table);

            return(header);
        }
Beispiel #2
0
        protected override IHtmlNode CreateFooter(GridRenderingData renderingData)
        {
            var div = new HtmlElement("div").AddClass("k-grid-footer");

            var wrapper = new HtmlElement("div").AddClass("k-grid-footer-wrap");

            wrapper.AppendTo(div);

            var table = CreateTable(renderingData);

            table.AppendTo(wrapper);

            var tfoot = DataSectionBuilder.CreateFooter(renderingData);

            tfoot.AppendTo(table);

            return(div);
        }