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

Common configuration

2 Answers 72 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Bob asked on 11 Feb 2015, 09:37 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Informed Sources
Top achievements
Rank 1
answered on 12 Feb 2015, 03:24 AM
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
0
Bob
Top achievements
Rank 1
answered on 20 Feb 2015, 09:42 PM
Thanks. I should review those sections of the doc's every now and then. They have good info that I constantly forget.
Tags
Grid
Asked by
Bob
Top achievements
Rank 1
Answers by
Informed Sources
Top achievements
Rank 1
Bob
Top achievements
Rank 1
Share this question
or