GridBuilder<T>
Defines the fluent API for configuring the Kendo UI Grid
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class GridBuilder<T> : WidgetBuilderBase<Grid<T>, GridBuilder<T>>, IHtmlContent where T : class
Inheritance: objectHelperResultWidgetBuilderBase<Grid<T>, GridBuilder<T>>GridBuilder<T>
Implements:
Inherited Members
Constructors
Initializes a new instance of the GridBuilder<T> class.
Methods
Specifies the adaptive rendering of the component.
public GridBuilder<T> AdaptiveMode(AdaptiveMode value)
The value for AdaptiveMode
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance.
Defines the configuration options for the AI tools in the Grid.
public GridBuilder<T> AI(Action<GridAiSettingsBuilder<T>> configurator)
The GridAiSettingsBuilder<T> for the ai setting.
Returns:GridBuilder<T>
Returns the current instance of GridBuilder<T> .
If set to true and selection of the Grid is enabled, the user could copy the selection into the clipboard and paste it into Excel or other similar programs that understand TSV/CSV formats. By default allowCopy is disabled and the default format is TSV. Can be set to a JavaScript object which represents the allowCopy configuration.
public GridBuilder<T> AllowCopy()
GridBuilder<T>
Returns the current instance of GridAllowCopySettingsBuilder<T> .
If set to true and selection of the Grid is enabled, the user could copy the selection into the clipboard and paste it into Excel or other similar programs that understand TSV/CSV formats. By default allowCopy is disabled and the default format is TSV. Can be set to a JavaScript object which represents the allowCopy configuration.
public GridBuilder<T> AllowCopy(Action<GridAllowCopySettingsBuilder<T>> configurator)
The GridAllowCopySettingsBuilder<T> for the allowcopy setting.
Returns:GridBuilder<T>
Returns the current instance of GridBuilder<T> .
If set to true and selection of the Grid is enabled, the user could copy the selection into the clipboard and paste it into Excel or other similar programs that understand TSV/CSV formats. By default allowCopy is disabled and the default format is TSV. Can be set to a JavaScript object which represents the allowCopy configuration.
public GridBuilder<T> AllowCopy(bool enabled)
Enables or disables the allowcopy option.
Returns:GridBuilder<T>
Returns the current instance of GridAllowCopySettingsBuilder<T> .
If set to true and the selection functionality of the Grid is enabled, the user can paste the current textual content of the clipboard into the Grid.
public GridBuilder<T> AllowPaste()
GridBuilder<T>
Returns the current GridBuilder<T> instance.
If set to true and the selection functionality of the Grid is enabled, the user can paste the current textual content of the clipboard into the Grid.
public GridBuilder<T> AllowPaste(bool value)
The value for AllowPaste
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance.
If set to false, the Grid will not bind to the data source during initialization, i.e. it will not call the fetch method of the dataSource instance. In such scenarios data binding will occur when the change event of the dataSource instance is fired. By default, autoBind is set to true and the widget will bind to the data source specified in the configuration.
public GridBuilder<T> AutoBind(bool value)
The value for AutoBind
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance.
Binds the grid to a list of objects
public GridBuilder<T> BindTo(IEnumerable dataSource)
The data source.
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Binds the grid to a list of objects
public GridBuilder<T> BindTo(IEnumerable<T> dataSource)
The data source.
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Sets the client-side alt row template of the grid. The client-side row template must contain a table row element (tr).
public GridBuilder<T> ClientAltRowTemplate(Func<Grid<T>, string> template)
The template
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Sets the client-side alt row template of the grid. The client-side alt row template must contain a table row element (tr).
public GridBuilder<T> ClientAltRowTemplate(string template)
The template
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Sets the client-side alt row template of the grid. The client-side row template must contain a table row element (tr).
public GridBuilder<T> ClientAltRowTemplate<TModel>(TemplateBuilder<TModel> template)
The template TemplateBuilder<TModel>
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
The JavaScript function that returns the client-side alt row template of the grid. The client-side alt row template must contain a table row element (tr).
public GridBuilder<T> ClientAltRowTemplateHandler(string template)
GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Sets the client-side detail template of the grid.
public GridBuilder<T> ClientDetailTemplate<TModel>(TemplateBuilder<TModel> template)
The template TemplateBuilder<TModel>
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
The JavaScript function that returns the client-side detail template of the grid.
public GridBuilder<T> ClientDetailTemplateHandler(string handler)
GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Sets the id of the script element which contains the client-side detail template of the grid.
public GridBuilder<T> ClientDetailTemplateId(string id)
The id
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Sets the client-side detail template of the grid.
public GridBuilder<T> ClientDetailTemplateView(IHtmlContent templateView)
The template view
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Sets the client-side row template of the grid. The client-side row template must contain a table row element (tr).
public GridBuilder<T> ClientRowTemplate(Func<Grid<T>, string> template)
The template
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Sets the client-side row template of the grid. The client-side row template must contain a table row element (tr).
public GridBuilder<T> ClientRowTemplate(string template)
The template
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Sets the client-side row template of the grid. The client-side row template must contain a table row element (tr).
public GridBuilder<T> ClientRowTemplate<TModel>(TemplateBuilder<TModel> template)
The template TemplateBuilder<TModel>
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
The JavaScript function that returns the client-side row template of the grid. The client-side row template must contain a table row element (tr).
public GridBuilder<T> ClientRowTemplateHandler(string value)
The name of the JavaScript function.
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
If set to true the grid will display the column menu when the user clicks the chevron icon in the column headers. The column menu allows the user to show and hide columns, filter and sort (if filtering and sorting are enabled). By default the column menu is not enabled.Can be set to a JavaScript object which represents the column menu configuration.
public GridBuilder<T> ColumnMenu()
GridBuilder<T>
Returns the current instance of GridColumnMenuSettingsBuilder<T> .
If set to true the grid will display the column menu when the user clicks the chevron icon in the column headers. The column menu allows the user to show and hide columns, filter and sort (if filtering and sorting are enabled). By default the column menu is not enabled.Can be set to a JavaScript object which represents the column menu configuration.
public GridBuilder<T> ColumnMenu(Action<GridColumnMenuSettingsBuilder<T>> configurator)
The GridColumnMenuSettingsBuilder<T> for the columnmenu setting.
Returns:GridBuilder<T>
Returns the current instance of GridBuilder<T> .
If set to true the grid will display the column menu when the user clicks the chevron icon in the column headers. The column menu allows the user to show and hide columns, filter and sort (if filtering and sorting are enabled). By default the column menu is not enabled.Can be set to a JavaScript object which represents the column menu configuration.
public GridBuilder<T> ColumnMenu(bool enabled)
Enables or disables the columnmenu option.
Returns:GridBuilder<T>
Returns the current instance of GridColumnMenuSettingsBuilder<T> .
Defines the width of the column resize handle in pixels. Apply a larger value for easier grasping.
public GridBuilder<T> ColumnResizeHandleWidth(double value)
The value for ColumnResizeHandleWidth
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance.
Sets the column configuration of the grid.
public GridBuilder<T> Columns(Action<GridColumnFactory<T>> configurator)
The lambda which configures columns
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Enables the Grid's Context Menu.
public GridBuilder<T> ContextMenu()
GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Sets the ContextMenu configuration of the grid.
public GridBuilder<T> ContextMenu(Action<GridContextMenuBuilder> configurator)
The lambda which configures the Context Menu
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Defines the data layout mode of the grid.
public GridBuilder<T> DataLayoutMode(DataLayoutMode value)
The value for DataLayoutMode
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance.
Sets the data source configuration of the grid.
public GridBuilder<T> DataSource(Action<DataSourceBuilder<T>> configurator)
The lambda which configures the data source
Returns:GridBuilder<T>
Sets the ID of the DataSource widget used by the Grid.
public GridBuilder<T> DataSource(string dataSourceId)
The name of the DataSource
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Enables grid editing.
public GridBuilder<T> Editable()
GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Sets the editing configuration of the grid.
public GridBuilder<T> Editable(Action<GridEditingSettingsBuilder<T>> configurator)
The lambda which configures the editing
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Sets the edit mode of the grid.
public GridBuilder<T> Editable(GridEditMode editMode)
The lambda which configures the editing
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
If set to true the grid will perform custom binding.
public GridBuilder<T> EnableCustomBinding(bool value)
If true enables custom binding.
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
If set to true the column title will be HTML-encoded before it is displayed. If set to false the column title will be displayed as is.
public GridBuilder<T> EncodeTitles()
GridBuilder<T>
Returns the current GridBuilder<T> instance.
If set to true the column title will be HTML-encoded before it is displayed. If set to false the column title will be displayed as is.
public GridBuilder<T> EncodeTitles(bool value)
The value for EncodeTitles
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance.
Configures the client-side events.
public GridBuilder<T> Events(Action<GridEventBuilder> configurator)
The client events action.
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance.
Configures the Kendo UI Grid Excel export settings.
public GridBuilder<T> Excel(Action<GridExcelSettingsBuilder<T>> configurator)
The GridExcelSettingsBuilder<T> for the excel setting.
Returns:GridBuilder<T>
Returns the current instance of GridBuilder<T> .
Enables grid filtering.
public GridBuilder<T> Filterable()
GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Sets the filtering configuration of the grid.
public GridBuilder<T> Filterable(Action<GridFilterableSettingsBuilder> configurator)
The lambda which configures the filtering
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
If set to true the user could group the grid by dragging the column header cells. By default grouping is disabled.Can be set to a JavaScript object which represents the grouping configuration.
public GridBuilder<T> Groupable()
GridBuilder<T>
Returns the current instance of GridGroupableSettingsBuilder<T> .
If set to true the user could group the grid by dragging the column header cells. By default grouping is disabled.Can be set to a JavaScript object which represents the grouping configuration.
public GridBuilder<T> Groupable(Action<GridGroupableSettingsBuilder<T>> configurator)
The GridGroupableSettingsBuilder<T> for the groupable setting.
Returns:GridBuilder<T>
Returns the current instance of GridBuilder<T> .
If set to true the user could group the grid by dragging the column header cells. By default grouping is disabled.Can be set to a JavaScript object which represents the grouping configuration.
public GridBuilder<T> Groupable(bool enabled)
Enables or disables the groupable option.
Returns:GridBuilder<T>
Returns the current instance of GridGroupableSettingsBuilder<T> .
Sets the height of the grid.
public GridBuilder<T> Height(int pixelHeight)
The height of the grid. Numeric values are treated as pixels.
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Sets the height of the grid.
public GridBuilder<T> Height(string value)
The height of the grid.
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Defines the type of the loader that will be displayed while loading the data
public GridBuilder<T> LoaderType(GridLoaderType value)
The value for LoaderType
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance.
Configures the grid messages.
public GridBuilder<T> Messages(Action<GridMessagesBuilder> configurator)
Defines the text of the messages used by the Grid
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Enables the adaptive rendering when viewed on mobile browser
public GridBuilder<T> Mobile()
GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Used to determine if adaptive rendering should be used when viewed on mobile browser
public GridBuilder<T> Mobile(MobileMode type)
Defines the type of the Mobile Mode
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Currently the Grid widget doesn't distinguish between phone and tablet option.
If set to true the user could navigate the component using the keyboard navigation. By default keyboard navigation is disabled.
public GridBuilder<T> Navigatable()
GridBuilder<T>
Returns the current GridBuilder<T> instance.
If set to true the user could navigate the component using the keyboard navigation. By default keyboard navigation is disabled.
public GridBuilder<T> Navigatable(bool value)
The value for Navigatable
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance.
If set to true and current view contains no records, message similar to "No records available" will be displayed. By default this option is disabled.
public GridBuilder<T> NoRecords()
GridBuilder<T>
Returns the current instance of GridNoRecordsSettingsBuilder<T> .
If set to true and current view contains no records, message similar to "No records available" will be displayed. By default this option is disabled.
public GridBuilder<T> NoRecords(Action<GridNoRecordsSettingsBuilder<T>> configurator)
The GridNoRecordsSettingsBuilder<T> for the norecords setting.
Returns:GridBuilder<T>
Returns the current instance of GridBuilder<T> .
If set to true and current view contains no records, message similar to "No records available" will be displayed. By default this option is disabled.
public GridBuilder<T> NoRecords(bool enabled)
Enables or disables the norecords option.
Returns:GridBuilder<T>
Returns the current instance of GridNoRecordsSettingsBuilder<T> .
Enables grid paging.
public GridBuilder<T> Pageable()
GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Sets the paging configuration of the grid.
public GridBuilder<T> Pageable(Action<GridPageableSettingsBuilder> configurator)
The lambda which configures the paging
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Configures the Kendo UI Grid PDF export settings.
public GridBuilder<T> Pdf(Action<GridPdfSettingsBuilder<T>> configurator)
The GridPdfSettingsBuilder<T> for the pdf setting.
Returns:GridBuilder<T>
Returns the current instance of GridBuilder<T> .
Sets a value indicating whether the selection will be persisted when sorting, paging, filtering and etc are performed.
public GridBuilder<T> PersistSelection()
GridBuilder<T>
Returns the current GridBuilder<T> instance.
Sets a value indicating whether the selection will be persisted when sorting, paging, filtering and etc are performed.
public GridBuilder<T> PersistSelection(bool value)
The value for PersistSelection
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance.
Enables row pinning for the Grid. When enabled, rows can be pinned to the top or bottom of the Grid so they remain visible while scrolling through the remaining data. Pinned rows are rendered in dedicated containers above and below the scrollable content area.The pinnable option can be set to true to enable the feature without initially pinned rows, or to an object specifying which rows to pin by their ID values.
public GridBuilder<T> Pinnable()
GridBuilder<T>
Returns the current instance of GridPinnableSettingsBuilder<T> .
Enables row pinning for the Grid. When enabled, rows can be pinned to the top or bottom of the Grid so they remain visible while scrolling through the remaining data. Pinned rows are rendered in dedicated containers above and below the scrollable content area.The pinnable option can be set to true to enable the feature without initially pinned rows, or to an object specifying which rows to pin by their ID values.
public GridBuilder<T> Pinnable(Action<GridPinnableSettingsBuilder<T>> configurator)
The GridPinnableSettingsBuilder<T> for the pinnable setting.
Returns:GridBuilder<T>
Returns the current instance of GridBuilder<T> .
Enables row pinning for the Grid. When enabled, rows can be pinned to the top or bottom of the Grid so they remain visible while scrolling through the remaining data. Pinned rows are rendered in dedicated containers above and below the scrollable content area.The pinnable option can be set to true to enable the feature without initially pinned rows, or to an object specifying which rows to pin by their ID values.
public GridBuilder<T> Pinnable(bool enabled)
Enables or disables the pinnable option.
Returns:GridBuilder<T>
Returns the current instance of GridPinnableSettingsBuilder<T> .
A function that allows customizing the rendering of pinned rows. The function receives an object with two fields: dataItem (the data item for the row) and row (the default HTML string for the row). The function must return an HTML string.If not set, pinned rows use the same template as regular rows.
public GridBuilder<T> PinnedRowTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the pinnedrowtemplate.
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance.
A function that allows customizing the rendering of pinned rows. The function receives an object with two fields: dataItem (the data item for the row) and row (the default HTML string for the row). The function must return an HTML string.If not set, pinned rows use the same template as regular rows.
public GridBuilder<T> PinnedRowTemplateHandler(string templateHandler)
The handler that returs the template for PinnedRowTemplate
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance.
If set to true the grid will prefix the query string parameters with its name. The default value is false.
public GridBuilder<T> PrefixUrlParameters(bool prefix)
GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Sets the reordering configuration of the grid.
public GridBuilder<T> Reorderable(Action<GridReorderingSettingsBuilder> configurator)
The lambda which configures the reordering
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Sets the resizing configuration of the grid.
public GridBuilder<T> Resizable(Action<GridResizingSettingsBuilder> configurator)
The lambda which configures the resizing
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Enables grid scrolling.
public GridBuilder<T> Scrollable()
GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Sets the scrolling configuration of the grid.
public GridBuilder<T> Scrollable(Action<GridScrollSettingsBuilder> configurator)
The lambda which configures the scrolling
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Configures the Kendo UI Grid search bar settings.
public GridBuilder<T> Search(Action<GridSearchSettingsBuilder<T>> configurator)
The GridSearchSettingsBuilder<T> for the search setting.
Returns:GridBuilder<T>
Returns the current instance of GridBuilder<T> .
Enables grid row selection.
public GridBuilder<T> Selectable()
GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Sets the selection configuration of the grid.
public GridBuilder<T> Selectable(Action<GridSelectionSettingsBuilder> configurator)
The lambda which configures the selection
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Sets the size of the grid.
public GridBuilder<T> Size(ComponentSize? value)
The size of the grid.
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Defines the configuration options for the SmartBox tool in the Grid. The SmartBox provides a unified interface for search, semantic search, and AI assistant capabilities.
public GridBuilder<T> SmartBox(Action<GridSmartBoxSettingsBuilder<T>> configurator)
The GridSmartBoxSettingsBuilder<T> for the smartbox setting.
Returns:GridBuilder<T>
Returns the current instance of GridBuilder<T> .
If set to true the user could sort the grid by clicking the column header cells. By default sorting is disabled.Can be set to a JavaScript object which represents the sorting configuration.
public GridBuilder<T> Sortable()
GridBuilder<T>
Returns the current instance of GridSortableSettingsBuilder<T> .
If set to true the user could sort the grid by clicking the column header cells. By default sorting is disabled.Can be set to a JavaScript object which represents the sorting configuration.
public GridBuilder<T> Sortable(Action<GridSortableSettingsBuilder<T>> configurator)
The GridSortableSettingsBuilder<T> for the sortable setting.
Returns:GridBuilder<T>
Returns the current instance of GridBuilder<T> .
If set to true the user could sort the grid by clicking the column header cells. By default sorting is disabled.Can be set to a JavaScript object which represents the sorting configuration.
public GridBuilder<T> Sortable(bool enabled)
Enables or disables the sortable option.
Returns:GridBuilder<T>
Returns the current instance of GridSortableSettingsBuilder<T> .
The stacked layout settings of the Grid.
public GridBuilder<T> StackedLayoutSettings(Action<GridStackedLayoutSettingsSettingsBuilder<T>> configurator)
The GridStackedLayoutSettingsSettingsBuilder<T> for the stackedlayoutsettings setting.
Returns:GridBuilder<T>
Returns the current instance of GridBuilder<T> .
The template which renders the Status Bar/Aggregates Bar.
public GridBuilder<T> StatusBarTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the statusbartemplate.
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance.
The template which renders the Status Bar/Aggregates Bar.
public GridBuilder<T> StatusBarTemplateHandler(string templateHandler)
The handler that returs the template for StatusBarTemplate
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance.
Sets the toolbar configuration of the grid. Set the list of commands displayed in the Grid's Toolbar. Supports adding custom or built-in commands.
public GridBuilder<T> ToolBar(Action<GridToolBarCommandFactory<T>> configurator)
The lambda which configures the toolbar
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Sets the toolbar configuration of the grid. Supports adding custom or built-in commands, configuring the toolbar overflow settings and adaptive editing settings.
public GridBuilder<T> ToolBar(Action<GridToolBarSettingsBuilder<T>> configurator)
The lambda which configures the toolbar
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Sets toolbar template.
public GridBuilder<T> ToolBar(IHtmlContent templateView)
The view that contains the template.
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Sets toolbar template. When a String value is assigned to the toolbar configuration option, it will be treated as a single string template for the whole Grid toolbar and the string value will be passed as an argument to a kendo.template() function.
public GridBuilder<T> ToolBar(string template)
The action defining the template.
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Sets the toolbar template. Use the Template Component to configure the Toolbar.
public GridBuilder<T> ToolBar<TModel>(TemplateBuilder<TModel> template)
The template component which contains the template.
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Sets the toolbar template. When a Function value is assigned (it may be a kendo.template() function call or a generic function reference), then the return value of the function will be used to render the Grid Toolbar contents.
public GridBuilder<T> ToolBarClientTemplateHandler(string handler)
The function handler which contains the template.
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Sets the id of the script element which contains the client-side toolbar template of the grid.
public GridBuilder<T> ToolBarClientTemplateId(string template)
GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Sets the width of the grid.
public GridBuilder<T> Width(int pixelWidth)
The width of the Grid
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.
Sets the width of the grid.
public GridBuilder<T> Width(string value)
The width of the Grid
Returns:GridBuilder<T>
Returns the current GridBuilder<T> instance for method chaining.