joeharrison714 / MVCGrid.Net

http://mvcgrid.net
MIT License
75 stars 56 forks source link

RegisterGrids method is called before all the other methods from Application_Start()? #128

Open MiBuena opened 7 years ago

MiBuena commented 7 years ago

I am working on an ASP.NET MVC project, I installed MVCGrid.Net, but it seems it calls the RegisterGrids method before all the other methods from the Global.asax -> Application_Start() method. In the Application_Start() I configure the Automapper, etc., so you can imagine when it calls the RegisterGrids first - there come a number of Exceptions.

I have applied a temporary fix, by making RegisterGrids() method empty and moving all its content to a separate method which I additionally call at the end of the Application_Start() and it does the job properly, but is there a better way to solve it?