﻿#region License
// 
// Copyright (c) 2013, Kooboo team
// 
// Licensed under the BSD License
// See the file LICENSE.txt for details.
// 
#endregion
using Kooboo.Web.Mvc.Grid2;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Kooboo.Web.Mvc;
using System.Web.Mvc;
using Kooboo.Globalization;
using System.Web.Mvc.Html;
namespace Kooboo.CMS.Web.Areas.Sites.Models.Grid2
{
    public class Element_Value_GridItemColumn : GridItemColumn
    {
        public Element_Value_GridItemColumn(IGridColumn gridColumn, object dataItem, object propertyValue)
            : base(gridColumn, dataItem, propertyValue)
        {

        }

        public override IHtmlString RenderItemColumn(System.Web.Mvc.ViewContext viewContext)
        {
            return viewContext.HtmlHelper().Partial("_ValueGridItemColumn", this.DataItem);
        }
    }

    public class Element_Edit_GridItemColumn : GridItemColumn
    {
        public Element_Edit_GridItemColumn(IGridColumn gridColumn, object dataItem, object propertyValue)
            : base(gridColumn, dataItem, propertyValue)
        {

        }

        public override IHtmlString RenderItemColumn(System.Web.Mvc.ViewContext viewContext)
        {
            return viewContext.HtmlHelper().Partial("_ValueGridItemColumn", this.DataItem);
        }
    }
}
