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

Reuse common settings with an "include" ?

1 Answer 57 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 23 Jan 2014, 03:52 PM
on each one of my Grids I employ the following behavior.  What is the best way to create a variable/array/object? that I can then just reuse on each grid so that I can change these common settings in a single spot.  There are a few grids in our application that do not use these settings so I do not want to change the default behavior of all grids.

.HtmlAttributes(new { @class = "cursorLink"})
.Pageable(p =>
     {
          p.Input(true).Numeric(false);
          p.PageSizes(new int[] { 25, 50, 100, 200, 500 });
     })
.Filterable()
..ColumnMenu()

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 27 Jan 2014, 09:29 AM
Hi Jason,

You can use custom HtmlHelpers.

http://www.telerik.com/forums/define-a-custom-html-kendo-extension-helper

Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Jason
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or