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