Class MobileGridPropertiesBuilder<T>
Inheritance
Inherited Members
Namespace: Syncfusion.JavaScript
Assembly: Syncfusion.EJ.dll
Syntax
public class MobileGridPropertiesBuilder<T> : IPropertiesBuilder, IHtmlString where T : class
Type Parameters
Name | Description |
---|---|
T |
Constructors
MobileGridPropertiesBuilder()
Declaration
public MobileGridPropertiesBuilder()
MobileGridPropertiesBuilder(MobileGrid<T>)
Declaration
public MobileGridPropertiesBuilder(MobileGrid<T> grid)
Parameters
Type | Name | Description |
---|---|---|
MobileGrid<T> | grid |
Methods
AllowColumnSelector(Boolean)
used to define whether the column selector can be allowed or not.
Declaration
public MobileGridPropertiesBuilder<T> AllowColumnSelector(bool show)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | show | if set to |
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> |
AllowFiltering()
Declaration
public MobileGridPropertiesBuilder<T> AllowFiltering()
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> |
AllowFiltering(Boolean)
Declaration
public MobileGridPropertiesBuilder<T> AllowFiltering(bool allowFiltering)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | allowFiltering |
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> |
AllowPaging()
Declaration
public MobileGridPropertiesBuilder<T> AllowPaging()
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> |
AllowPaging(Boolean)
Declaration
public MobileGridPropertiesBuilder<T> AllowPaging(bool allowPaging)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | allowPaging |
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> |
AllowScrolling()
Specifies whether to enable the scrolling feature in Grid.
Declaration
public MobileGridPropertiesBuilder<T> AllowScrolling()
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> | MobileGridPropertiesBuilder{`0}. |
AllowScrolling(Boolean)
Specifies whether to enable the scrolling feature in Grid.
Declaration
public MobileGridPropertiesBuilder<T> AllowScrolling(bool allowScrolling)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | allowScrolling | if set to |
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> | MobileGridPropertiesBuilder{`0}. |
AllowSelection()
Declaration
public MobileGridPropertiesBuilder<T> AllowSelection()
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> |
AllowSelection(Boolean)
Declaration
public MobileGridPropertiesBuilder<T> AllowSelection(bool allowSelection)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | allowSelection |
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> |
AllowSorting()
Enable or disable the sorting behavior for the Grid and we can able to sort the Grid columns in Ascending or Decending Order.
Declaration
public MobileGridPropertiesBuilder<T> AllowSorting()
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> | MobileGridPropertiesBuilder{`0}. |
AllowSorting(Boolean)
Enable or disable the sorting behavior for the Grid and we can able to sort the Grid columns in Ascending or Decending Order.
Declaration
public MobileGridPropertiesBuilder<T> AllowSorting(bool allowSorting)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | allowSorting | if set to |
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> | MobileGridPropertiesBuilder{`0}. |
Caption(String)
Declaration
public MobileGridPropertiesBuilder<T> Caption(string caption)
Parameters
Type | Name | Description |
---|---|---|
System.String | caption |
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> |
ClientSideEvents(Action<MobileClientSideEventsBuilder<T>>)
Declaration
public MobileGridPropertiesBuilder<T> ClientSideEvents(Action<MobileClientSideEventsBuilder<T>> clientSideEvents)
Parameters
Type | Name | Description |
---|---|---|
System.Action<MobileClientSideEventsBuilder<T>> | clientSideEvents |
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> |
Columns(Action<MobileColumnBuilder<T>>)
Columnses the specified column.
Declaration
public MobileGridPropertiesBuilder<T> Columns(Action<MobileColumnBuilder<T>> column)
Parameters
Type | Name | Description |
---|---|---|
System.Action<MobileColumnBuilder<T>> | column | The column. |
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> | MobileGridPropertiesBuilder{`0}. |
Columns(List<MobileColumn<T>>)
Columnses the specified column.
Declaration
public MobileGridPropertiesBuilder<T> Columns(List<MobileColumn<T>> column)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<MobileColumn<T>> | column | The column. |
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> | MobileGridPropertiesBuilder{`0}. |
CssClass(String)
Specifies custom theme for the control.
Declaration
public MobileGridPropertiesBuilder<T> CssClass(string cssClass)
Parameters
Type | Name | Description |
---|---|---|
System.String | cssClass | The cssClass. |
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> |
Datasource(DataSource)
Specifies the data source for the grid
Declaration
public MobileGridPropertiesBuilder<T> Datasource(DataSource dataSource)
Parameters
Type | Name | Description |
---|---|---|
DataSource | dataSource | The data source. |
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> | MobileGridPropertiesBuilder{`0}. |
Datasource(Action<DataSourceBuilder>)
Declaration
public MobileGridPropertiesBuilder<T> Datasource(Action<DataSourceBuilder> dataSource)
Parameters
Type | Name | Description |
---|---|---|
System.Action<DataSourceBuilder> | dataSource |
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> |
Datasource(IEnumerable<T>)
Datasources the specified data source.
Declaration
public MobileGridPropertiesBuilder<T> Datasource(IEnumerable<T> dataSource)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<T> | dataSource | The data source. |
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> | MobileGridPropertiesBuilder{`0}. |
Datasource(IEnumerable)
Specifies the data source for the grid
Declaration
public MobileGridPropertiesBuilder<T> Datasource(IEnumerable dataSource)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IEnumerable | dataSource | The data source. |
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> | MobileGridPropertiesBuilder{`0}. |
Datasource(String)
Specifies the data source for the grid
Declaration
public MobileGridPropertiesBuilder<T> Datasource(string dataURL)
Parameters
Type | Name | Description |
---|---|---|
System.String | dataURL | The data URL. |
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> | MobileGridPropertiesBuilder{`0}. |
EnablePersistence()
Specifies whether to enable the state maintenance in grid.
Declaration
public MobileGridPropertiesBuilder<T> EnablePersistence()
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> | MobileGridPropertiesBuilder{`0}. |
EnablePersistence(Boolean)
Specifies whether to enable the state maintenance in grid.
Declaration
public MobileGridPropertiesBuilder<T> EnablePersistence(bool enablePersistence)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | enablePersistence | if set to |
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> | MobileGridPropertiesBuilder{`0}. |
FilterSettings(MobileFilterSettings<T>)
This property is used to customize the filtering behavior of the grid.
Declaration
public MobileGridPropertiesBuilder<T> FilterSettings(MobileFilterSettings<T> filterSettings)
Parameters
Type | Name | Description |
---|---|---|
MobileFilterSettings<T> | filterSettings | The filter settings. |
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> | MobileGridPropertiesBuilder{`0}. |
FilterSettings(Action<MobileFilterSettingsBuilder<T>>)
This property is used to customize the filtering behavior of the grid.
Declaration
public MobileGridPropertiesBuilder<T> FilterSettings(Action<MobileFilterSettingsBuilder<T>> filterSettings)
Parameters
Type | Name | Description |
---|---|---|
System.Action<MobileFilterSettingsBuilder<T>> | filterSettings | The filter settings. |
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> | MobileGridPropertiesBuilder{`0}. |
PageSettings(MobilePageSettings<T>)
Pages the settings.
Declaration
public MobileGridPropertiesBuilder<T> PageSettings(MobilePageSettings<T> pageSettings)
Parameters
Type | Name | Description |
---|---|---|
MobilePageSettings<T> | pageSettings | The page settings. |
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> | MobileGridPropertiesBuilder{`0}. |
PageSettings(Action<MobilePageSettingsBuilder<T>>)
This property is used to modify pager default configuration.
Declaration
public MobileGridPropertiesBuilder<T> PageSettings(Action<MobilePageSettingsBuilder<T>> pageSettings)
Parameters
Type | Name | Description |
---|---|---|
System.Action<MobilePageSettingsBuilder<T>> | pageSettings | The page settings. |
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> | MobileGridPropertiesBuilder{`0}. |
Query(String)
Queries the specified query.
Declaration
public MobileGridPropertiesBuilder<T> Query(string query)
Parameters
Type | Name | Description |
---|---|---|
System.String | query | The query. |
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> | MobileGridPropertiesBuilder{`0}. |
Render()
Declaration
public void Render()
RenderMode(RenderMode)
Changes the rendering mode of the grid. It can be auto, ios7, android, windows or flat.
Declaration
public MobileGridPropertiesBuilder<T> RenderMode(RenderMode renderMode)
Parameters
Type | Name | Description |
---|---|---|
RenderMode | renderMode | The render mode. |
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> | MobileGridPropertiesBuilder{`0}. |
ScrollSettings(MobileScrollSettings<T>)
Used to enable grid column and row scrolling.
Declaration
public MobileGridPropertiesBuilder<T> ScrollSettings(MobileScrollSettings<T> scrollSettings)
Parameters
Type | Name | Description |
---|---|---|
MobileScrollSettings<T> | scrollSettings | The scroll settings. |
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> | MobileGridPropertiesBuilder{`0}. |
ScrollSettings(Action<MobileScrollSettingsBuilder<T>>)
Used to enable grid column and row scrolling.
Declaration
public MobileGridPropertiesBuilder<T> ScrollSettings(Action<MobileScrollSettingsBuilder<T>> scrollSettings)
Parameters
Type | Name | Description |
---|---|---|
System.Action<MobileScrollSettingsBuilder<T>> | scrollSettings | The scroll settings. |
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> | MobileGridPropertiesBuilder{`0}. |
SelectedRowIndex()
To apply row selection based on your row index value.
Declaration
public MobileGridPropertiesBuilder<T> SelectedRowIndex()
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> | MobileGridPropertiesBuilder{`0}. |
SelectedRowIndex(Int32)
To apply row selection based on your row index value.
Declaration
public MobileGridPropertiesBuilder<T> SelectedRowIndex(int selectedRowIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | selectedRowIndex | Index of the selected row. |
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> | MobileGridPropertiesBuilder{`0}. |
ShowCaption(Boolean)
Specifies the grid caption to be shown or not.
Declaration
public MobileGridPropertiesBuilder<T> ShowCaption(bool show)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | show | if set to |
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> |
SortSettings(MobileSortSettings<T>)
This property is used to modify sorting default configuration.
Declaration
public MobileGridPropertiesBuilder<T> SortSettings(MobileSortSettings<T> sortSettings)
Parameters
Type | Name | Description |
---|---|---|
MobileSortSettings<T> | sortSettings | The sort settings. |
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> | MobileGridPropertiesBuilder{`0}. |
SortSettings(Action<MobileSortSettingsBuilder<T>>)
This property is used to modify sorting default configuration.
Declaration
public MobileGridPropertiesBuilder<T> SortSettings(Action<MobileSortSettingsBuilder<T>> sortSettings)
Parameters
Type | Name | Description |
---|---|---|
System.Action<MobileSortSettingsBuilder<T>> | sortSettings | The sort settings. |
Returns
Type | Description |
---|---|
MobileGridPropertiesBuilder<T> | MobileGridPropertiesBuilder{`0}. |
ToHtmlString()
Declaration
public string ToHtmlString()
Returns
Type | Description |
---|---|
System.String |