Fixed: History grid loads faster (lazy loaded)

This commit is contained in:
Mark McDowall 2012-07-27 23:37:47 -07:00
parent 69a19b14c8
commit d44c07b27b
23 changed files with 245 additions and 39 deletions

View file

@ -0,0 +1,17 @@
using DataTables.Mvc.Core.Helpers;
using DataTables.Mvc.Core.Models;
using System.Web.Mvc;
[assembly: WebActivator.PreApplicationStartMethod(typeof($rootnamespace$.App_Start.DataTablesModelBinderActivator), "Start")]
namespace $rootnamespace$.App_Start
{
public static class DataTablesModelBinderActivator
{
public static void Start()
{
if (!ModelBinders.Binders.ContainsKey(typeof(DataTablesPageRequest)))
ModelBinders.Binders.Add(typeof(DataTablesPageRequest), new DataTablesModelBinder());
}
}
}