Exemplo n.º 1
0
 /* Setup available columns for the grid */
 private static JqGridData<Log> GetGridData()
 {
     var gridData = new JqGridData<Log>();
     gridData.IdFunction = l => l.Id;
     gridData.AddColumn("Id", l => l.Id, true);
     gridData.AddColumn("Message", l => l.Message, true);
     gridData.AddColumn("Logged", l => l.DateTime, false);
     return gridData;
 }
Exemplo n.º 2
0
        /* Setup available columns for the grid */

        private static JqGridData <Log> GetGridData()
        {
            var gridData = new JqGridData <Log>();

            gridData.IdFunction = l => l.Id;
            gridData.AddColumn("Id", l => l.Id, true);
            gridData.AddColumn("Message", l => l.Message, true);
            gridData.AddColumn("Logged", l => l.DateTime, false);
            return(gridData);
        }