コード例 #1
0
 public ActionResult Index()
 {
     var config = new ListConfiguration(typeof(AuditLogListModel), new string[] { "UserName", "LogType", "Message" });
     config.Fields.Insert(2, new ListFieldConfiguration("LogDateTime", "kendoDateTime") { ShowFilter = false });
     config.HideNameColumn = true;
     config.InterfaceResourceType = typeof(Resources.Interface);
     return this.View(config);
 }
コード例 #2
0
 public ActionResult Index()
 {
     var config = new ListConfiguration(typeof(ErrorLogListModel), new string[] { "ExceptionType", "UserEmail" });
     config.Fields.Insert(0, new ListFieldConfiguration("LogDateTime", "kendoDateTime") { ShowFilter = false });
     config.Fields.Add(new ListFieldConfiguration("Message") { DisplayHtml = true });
     config.HideNameColumn = true;
     config.InterfaceResourceType = typeof(Resources.Interface);
     return this.View(config);
 }