title: Using Ninject as my IDependencyResolver has serious issues? Please assist
body: <p>I created an NinjectResolver which implements IDependencyResolver.  In the global.asax, I'm setting this guy as my DependencyResolver.</p>
  
  <p>However, in doing so, I lose all of my data-dash attributes on validaiton.  And it also messes up the entire client-side paging, sorting on my grid (using Telerik's MVC extensions).</p>
  
  <p>Here's the class: </p>
  
  <pre><code>public class NinjectResolver : IDependencyResolver
  {
      private readonly IKernel _kernel;
  
      public IKernel Kernel
      {
          get
          {
              return _kernel;
          }
      }
  
      public NinjectResolver(params Ninject.Modules.INinjectModule[] modules)
      {
          _kernel = new StandardKernel(modules);
      }
  
      public object GetService(Type serviceType)
      {
          return _kernel.TryGet(serviceType);
      }
  
      public IEnumerable&lt;object&gt; GetServices(Type serviceType)
      {
          return _kernel.GetAll(serviceType);
      }
  
      public IBindingToSyntax&lt;T&gt; Bind&lt;T&gt;()
      {
          return _kernel.Bind&lt;T&gt;();
      }
  }
  </code></pre>
  
  <p>And here's my app start in global.asax ... </p>
  
  <pre><code>    protected void Application_Start()
      {
          .... omitted
  
          var modules = new Ninject.Modules.INinjectModule[] 
          { 
              new PersistenceModule()
          };
  
          var dependencyResolver = new NinjectResolver(modules);
          DependencyResolver.SetResolver(dependencyResolver);
  
          .... omitted
      }
  </code></pre>
  
  <p>If I comment out the SetResolver line, all my client-side validation works as well as my client-side grid sorting, paging, filtering, etc.  Unfortunately, I lose all my constructor injection.</p>
  
  <p>Any help is appreciated please.  Not sure if I have to add more modules for client side operations to work?   </p>
  
  <p>Please advise. </p>