Common configuration

3 posts, 1 answers
  1. Bob
    Bob avatar
    138 posts
    Member since:
    Sep 2012

    Posted 11 Feb 2015 Link to this post

    For the majority of our grids we have a specific configuration, Paging, Filters, etc. Any ideas of how to create a single config object in C# that I can just pass into a grid rather than setting everything for every grid.

    With js it seems doable... I just create a config object, modify any of our defaults if needs for that grid, and pass it to the jQuery extension. 

    But, I'm not sure how to do it for the MVC helpers. Any ideas?
  2. Answer
    Adam
    Adam avatar
    17 posts
    Member since:
    Jan 2009

    Posted 11 Feb 2015 in reply to Bob Link to this post

    I wanted the same thing. You can read how to here:

    http://docs.telerik.com/kendo-ui/aspnet-mvc/helpers/grid/faq#how-do-i-create-a-helper-method-that-renders-a-predefined-widget-which-i-can-further-configure
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Bob
    Bob avatar
    138 posts
    Member since:
    Sep 2012

    Posted 20 Feb 2015 in reply to Adam Link to this post

    Thanks. I should review those sections of the doc's every now and then. They have good info that I constantly forget.
Back to Top