C# Class SparkleXrm.GridEditor.GridDataViewBinder

Afficher le fichier Open project: scottdurow/SparkleXrm Class Usage Examples

Méthodes publiques

Свойство Type Description
AddCheckBoxSelectColumn bool
MultiSelect bool
SelectActiveRow bool
ValidationPopupUseFitPosition bool

Méthodes publiques

Méthode Description
AddColumn ( List cols, string displayName, int width, string field ) : Slick.Column
AddEditIndicatorColumn ( List columns ) : void

Adds a column that shows the state of the row as edited/new

AddRefreshButton ( string gridId, SparkleXrm.GridEditor.DataViewBase dataView ) : void
AddValidation ( Slick.Grid grid, SparkleXrm.GridEditor.DataViewBase dataView ) : void
BindClickHandler ( Slick.Grid grid ) : void

Binds the click handler for opening records from the grid attributes -see the formatters for attributes provided

BindCommitEdit ( ViewModelBase vm ) : void

Wire up the OnCommitEdit event handler for the grid In order to ensure that all grid edits have been commited before a VM command is run, the VM must call CommitEdit on the ViewModelBase and cancel if returns false.

BindRowIcon ( Slick.Column column, string entityLogicalName ) : Slick.Column
ColumnFormatter ( int row, int cell, object value, Slick.Column columnDef, object dataContext ) : string
Comparer ( object l, object r ) : int
DataBindDataViewGrid ( DataView dataView, List columns, string gridId, string pagerId, bool editable, bool allowAddNewRow ) : Slick.Grid

Data Binds the standard Slick.DataView

DataBindEvents ( Slick.Grid grid, SparkleXrm.GridEditor.DataViewBase dataView, string gridContainerDivId ) : void
DataBindSelectionModel ( Slick.Grid grid, SparkleXrm.GridEditor.DataViewBase dataView ) : void
DataBindXrmGrid ( SparkleXrm.GridEditor.DataViewBase dataView, List columns, string gridId, string pagerId, bool editable, bool allowAddNewRow ) : Slick.Grid

DataBinds a DataView that inherits from DataViewBase

NewColumn ( string field, string name, int width ) : Slick.Column
ParseLayout ( string layout ) : List
RowIcon ( int row, int cell, object value, Slick.Column columnDef, object dataContext ) : string

Formattor to get the icon for a row

Private Methods

Méthode Description
FreezeColumns ( Slick.Grid grid, bool freeze ) : void
ShowLoadingIndicator ( jQueryObject loadingIndicator, string gridContainerDivId ) : jQueryObject

Method Details

AddColumn() public static méthode

public static AddColumn ( List cols, string displayName, int width, string field ) : Slick.Column
cols List
displayName string
width int
field string
Résultat Slick.Column

AddEditIndicatorColumn() public static méthode

Adds a column that shows the state of the row as edited/new
public static AddEditIndicatorColumn ( List columns ) : void
columns List
Résultat void

AddRefreshButton() public méthode

public AddRefreshButton ( string gridId, SparkleXrm.GridEditor.DataViewBase dataView ) : void
gridId string
dataView SparkleXrm.GridEditor.DataViewBase
Résultat void

AddValidation() public méthode

public AddValidation ( Slick.Grid grid, SparkleXrm.GridEditor.DataViewBase dataView ) : void
grid Slick.Grid
dataView SparkleXrm.GridEditor.DataViewBase
Résultat void

BindClickHandler() public méthode

Binds the click handler for opening records from the grid attributes -see the formatters for attributes provided
public BindClickHandler ( Slick.Grid grid ) : void
grid Slick.Grid
Résultat void

BindCommitEdit() public méthode

Wire up the OnCommitEdit event handler for the grid In order to ensure that all grid edits have been commited before a VM command is run, the VM must call CommitEdit on the ViewModelBase and cancel if returns false.
public BindCommitEdit ( ViewModelBase vm ) : void
vm ViewModelBase
Résultat void

BindRowIcon() public static méthode

public static BindRowIcon ( Slick.Column column, string entityLogicalName ) : Slick.Column
column Slick.Column
entityLogicalName string
Résultat Slick.Column

ColumnFormatter() public static méthode

public static ColumnFormatter ( int row, int cell, object value, Slick.Column columnDef, object dataContext ) : string
row int
cell int
value object
columnDef Slick.Column
dataContext object
Résultat string

Comparer() public méthode

public Comparer ( object l, object r ) : int
l object
r object
Résultat int

DataBindDataViewGrid() public méthode

Data Binds the standard Slick.DataView
public DataBindDataViewGrid ( DataView dataView, List columns, string gridId, string pagerId, bool editable, bool allowAddNewRow ) : Slick.Grid
dataView DataView
columns List
gridId string
pagerId string
editable bool
allowAddNewRow bool
Résultat Slick.Grid

DataBindEvents() public méthode

public DataBindEvents ( Slick.Grid grid, SparkleXrm.GridEditor.DataViewBase dataView, string gridContainerDivId ) : void
grid Slick.Grid
dataView SparkleXrm.GridEditor.DataViewBase
gridContainerDivId string
Résultat void

DataBindSelectionModel() public méthode

public DataBindSelectionModel ( Slick.Grid grid, SparkleXrm.GridEditor.DataViewBase dataView ) : void
grid Slick.Grid
dataView SparkleXrm.GridEditor.DataViewBase
Résultat void

DataBindXrmGrid() public méthode

DataBinds a DataView that inherits from DataViewBase
public DataBindXrmGrid ( SparkleXrm.GridEditor.DataViewBase dataView, List columns, string gridId, string pagerId, bool editable, bool allowAddNewRow ) : Slick.Grid
dataView SparkleXrm.GridEditor.DataViewBase
columns List
gridId string
pagerId string
editable bool
allowAddNewRow bool
Résultat Slick.Grid

NewColumn() public static méthode

public static NewColumn ( string field, string name, int width ) : Slick.Column
field string
name string
width int
Résultat Slick.Column

ParseLayout() public static méthode

public static ParseLayout ( string layout ) : List
layout string
Résultat List

RowIcon() public static méthode

Formattor to get the icon for a row
public static RowIcon ( int row, int cell, object value, Slick.Column columnDef, object dataContext ) : string
row int
cell int
value object
columnDef Slick.Column
dataContext object
Résultat string

Property Details

AddCheckBoxSelectColumn public_oe property

public bool AddCheckBoxSelectColumn
Résultat bool

MultiSelect public_oe property

public bool MultiSelect
Résultat bool

SelectActiveRow public_oe property

public bool SelectActiveRow
Résultat bool

ValidationPopupUseFitPosition public_oe property

public bool ValidationPopupUseFitPosition
Résultat bool