This is a migrated thread and some comments may be shown as answers.

GridAction attribute handling code called after HttpApplication.EndRequest event

3 Answers 68 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jatin
Top achievements
Rank 1
Jatin asked on 01 Aug 2011, 12:58 PM
Hi,
   I am trying to get Ninject and Telerik MVC Grid (ajax mode) working together. I am binding DbContext (Entity Framework) using Ninject kernel in request scope so that it can be resolved and used throughout the application for a particular request. The problem is that the Ninject deactivator code starts executing even before the [GridAction] attribute handler gets a chance to handle the response. Typically this occurs when the "return View(new GridModel())" is executed.

I looked up the ninject code and it hooks the Ninject Deactivation code to the HttpApplication.EndRequest event, which seems logical. Why is the [GridAction] attribute handler called after the firing of EndRequest event of HttpApplication. 

regards,
Nirvan.




 

3 Answers, 1 is accepted

Sort by
0
Michael
Top achievements
Rank 1
answered on 06 Jan 2012, 05:21 PM
Were you able to get a resolution to this?  I am having the same issue.
0
Atanas Korchev
Telerik team
answered on 09 Jan 2012, 09:14 AM
Hi,

 The GridAction attribute inherits from the FilterAttribute class and does its job in the OnActionExecuting and OnActionExecuted methods which are called by the ASP.NET MVC framework.

Kind regards,
Atanas Korchev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
Sheikh
Top achievements
Rank 1
answered on 15 Mar 2012, 03:17 PM
Hi,
I am having problem with Ninject and Telerik MVC GridAction attribute...the code for grid action attribute never executed.....We are very core user of telerik products like sitefinity and telerik controls....We are planning to buy telerik mvc controls for our commercial projects...
It would be appreciated if you provide the solution?

Thanks...
Tags
Grid
Asked by
Jatin
Top achievements
Rank 1
Answers by
Michael
Top achievements
Rank 1
Atanas Korchev
Telerik team
Sheikh
Top achievements
Rank 1
Share this question
or