PivotConfiguratorV2Builder
Methods
Filterable(System.Boolean)
If set to true the user will be able to filter by using the field menu.
Parameters
value - System.Boolean
The value that configures the filterable.
Example
@(Html.Kendo().PivotConfiguratorV2()
.Name("configurator")
.Filterable(true)
)
Sortable(System.Boolean)
If set to true the user could sort the widget by using the field menu.
Parameters
value - System.Boolean
The value that configures the sortable.
Example
@(Html.Kendo().PivotConfiguratorV2()
.Name("configurator")
.Sortable(true)
)
Height(System.Double)
The height of the PivotConfiguratorV2. Numeric values are treated as pixels.
Parameters
value - System.Double
The value that configures the height.
Example
@(Html.Kendo().PivotConfiguratorV2()
.Name("configurator")
.Height(200)
)
Messages(System.Action)
The text messages displayed in the fields sections.
Parameters
configurator - System.Action<PivotConfiguratorV2MessagesSettingsBuilder>
The action that configures the messages.
Example
@(Html.Kendo().PivotConfiguratorV2()
.Name("configurator")
.Messages(messages => messages
.Rows("Custom Rows")
.Columns("Custom Columns")
.ApplyButtonText("Custom Apply")
.CancelButtonText("Custom Cancel")
.Title("Custom Title")
.FieldMenu(fieldMenu => fieldMenu
.Apply("Custom Apply")
.Include("Custom Include")
.MoveToColumns("Custom Move to Columns")
.MoveNext("Custom Move Next")
.Clear("Custom Clear")
.Filter("Custom Filter")
.FilterFields("Custom Filters")
.Reset("Custom Reset")
.SortAscending("Custom Sort Ascending")
.SortDescending("Custom Sort Descending")
.Operators(operators => operators
.Neq("Custom Neq")
.Startswith("Custom Starts with")
.Endswith("Custom Ends with")
.Contains("Custom Contains")
.Doesnotcontain("Custom Does Not Contain")
.Eq("Custom Equals")
)
})
})
)
Navigatable(System.Boolean)
If set to true the user could navigate the component using the keyboard navigation. By default keyboard navigation is disabled.
Parameters
value - System.Boolean
The value that configures the navigatable.
Example
@(Html.Kendo().PivotConfiguratorV2()
.Name("configurator")
.Navigatable(true)
)
Orientation(System.String)
Defines a value indicating the type of layout that the configurator has. Possible values are: "vertical" or "horizontal".
Parameters
value - System.String
The value that configures the orientation.
Example
@(Html.Kendo().PivotConfiguratorV2()
.Name("configurator")
.Orientation("horizontal")
)
ToComponent()
Returns the internal view component.
Name(System.String)
Sets the name of the component.
Parameters
componentName - System.String
The name of the component.
Example
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)
Deferred(System.Boolean)
Suppress initialization script rendering. Note that this options should be used in conjunction with
Parameters
deferred - System.Boolean
ModelMetadata(System.Web.Mvc.ModelMetadata)
Uses the Metadata of the Model.
Parameters
modelMetadata - System.Web.Mvc.ModelMetadata
The metadata set for the Model
HtmlAttributes(System.Object)
Sets the HTML attributes.
Parameters
attributes - System.Object
The HTML attributes.
HtmlAttributes(System.Collections.Generic.IDictionary)
Parameters
attributes - System.Collections.Generic.IDictionary<String,Object>
AsModule(System.Boolean)
Specifies whether the initialization script of the component will be rendered as a JavaScript module.
Parameters
value - System.Boolean
Render()
Renders the component.
Example
@(@Page Inherits="System.Web.Mvc.ViewPage<IEnumerable<Product>>" )
@( Html.Kendo().Grid(Model)
.Name("grid")
.DetailTemplate(product => {
)
Product Details:
<div>Product Name: @( product.ProductName )</div>
<div>Units In Stock: @( product.UnitsInStock )</div>
@(
})
.Render();
)
ScriptAttributes(System.Object,System.Boolean)
Sets the JavaScript attributes to the initialization script.
Parameters
attributes - System.Object
The JavaScript attributes.
overrideAttributes - System.Boolean
Argument which determines whether attributes should be overriden.
ScriptAttributes(System.Collections.Generic.IDictionary,System.Boolean)
Sets the JavaScript attributes to the initialization script.
Parameters
attributes - System.Collections.Generic.IDictionary<String,Object>
The JavaScript attributes.
overrideAttributes - System.Boolean
Argument which determines whether attributes should be overriden.