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

[Solved] Grid configuration

1 Answer 42 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
FranckSix
Top achievements
Rank 2
Iron
Iron
Iron
FranckSix asked on 30 Nov 2011, 03:19 PM

I put this line of code into my global.asax Application_Start

DI
.Current.Register<IGridActionResultFactory>(() => new CustomGridActionResultFactory());

and my CustomGridActionResultFactory  class
public class CustomGridActionResultFactory : IGridActionResultFactory    
{
   public ActionResult Create(object model)
   {
      //return a custom JSON result which will use the Json.Net library
      return new CustomJsonResult { Data = model };
    }
}

Tlerik Grid never call my create method at all. What is missing, does my method Create is ok?

Source from StackOverflow forum here

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 01 Dec 2011, 10:56 AM
Hello Francksix,

 We have a code library project which demonstrates this in action. You can download it and give it a try.

Best wishes,
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
Tags
General Discussions
Asked by
FranckSix
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Atanas Korchev
Telerik team
Share this question
or