12345678910111213141516171819202122232425262728 |
- //using System;
- //using System.Collections.Generic;
- //using System.Linq;
- //using System.Web;
- //using System.Web.Mvc.Html;
- //using Bowin.Common.JSON;
- //using Bowin.Web.Controls.Mvc;
- //namespace System.Web.Mvc
- //{
- // public static class TableExtensions
- // {
- // public static System.Web.Mvc.MvcHtmlString DataGrid(this System.Web.Mvc.HtmlHelper htmlHelper, DataGridOptions dataGridOptions, IDictionary<string, string> attributes = null)
- // {
- // var urlHelper = new UrlHelper(htmlHelper.ViewContext.RequestContext);
- // if (!string.IsNullOrEmpty(dataGridOptions.DataSourceUrl))
- // {
- // dataGridOptions.DataSourceUrl = urlHelper.Content(dataGridOptions.DataSourceUrl);
- // }
- // if (!string.IsNullOrEmpty(dataGridOptions.TitleImgPath))
- // {
- // dataGridOptions.TitleImgPath = urlHelper.Content(dataGridOptions.TitleImgPath);
- // }
- // return MvcHtmlString.Create(Bowin.Web.Controls.Mvc.DataGrid.CreateControl(dataGridOptions, attributes).Render());
- // }
- // }
- //}
|