This project is read-only.

Customize the column

Mar 26, 2014 at 5:23 PM
In my grid I am having time field column. I would like to add 15mins to the return value how I can do it.

TRAN_LOG_TS is the DateTime field how can i add additional time
@Html.Grid(Model).Columns(columns=>
{
    columns.Add(value=>value.TRAN_LOG_ID).Titled("Tran Log ID").SetWidth(100);
    columns.Add(value=>value.TRAN_LOG_TS).Titled("Tran Log TS").SetWidth(100);
    columns.Add(value=>value.TRAN_LOG_LEVEL).Titled("Tran Log Level").SetWidth(100);
    columns.Add(value => value.TRAN_LOG_MSG).Titled("Tran Log Message").SetWidth(100).Css("Extender");
    columns.Add(value => value.TRAN_LOG_EXCPT).Titled("Tran Log EXCPT").SetWidth(100).Css("Extender");
}).WithPaging(50)
Apr 5, 2014 at 8:17 AM
Hi, try to use RenderValueAs method, to customize time field rendering. Please see for more info - https://gridmvc.codeplex.com/wikipage?title=Render%20button%2c%20checkbox%20etc%20in%20the%20grid%20cell&referringTitle=Documentation