C# 클래스 SparkleXrm.GridEditor.GridDataViewBinder

파일 보기 프로젝트 열기: scottdurow/SparkleXrm 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
AddCheckBoxSelectColumn bool
MultiSelect bool
SelectActiveRow bool
ValidationPopupUseFitPosition bool

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
FreezeColumns ( Slick.Grid grid, bool freeze ) : void
ShowLoadingIndicator ( jQueryObject loadingIndicator, string gridContainerDivId ) : jQueryObject

메소드 상세

AddColumn() 공개 정적인 메소드

public static AddColumn ( List cols, string displayName, int width, string field ) : Slick.Column
cols List
displayName string
width int
field string
리턴 Slick.Column

AddEditIndicatorColumn() 공개 정적인 메소드

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

AddRefreshButton() 공개 메소드

public AddRefreshButton ( string gridId, SparkleXrm.GridEditor.DataViewBase dataView ) : void
gridId string
dataView SparkleXrm.GridEditor.DataViewBase
리턴 void

AddValidation() 공개 메소드

public AddValidation ( Slick.Grid grid, SparkleXrm.GridEditor.DataViewBase dataView ) : void
grid Slick.Grid
dataView SparkleXrm.GridEditor.DataViewBase
리턴 void

BindClickHandler() 공개 메소드

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
리턴 void

BindCommitEdit() 공개 메소드

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
리턴 void

BindRowIcon() 공개 정적인 메소드

public static BindRowIcon ( Slick.Column column, string entityLogicalName ) : Slick.Column
column Slick.Column
entityLogicalName string
리턴 Slick.Column

ColumnFormatter() 공개 정적인 메소드

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
리턴 string

Comparer() 공개 메소드

public Comparer ( object l, object r ) : int
l object
r object
리턴 int

DataBindDataViewGrid() 공개 메소드

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
리턴 Slick.Grid

DataBindEvents() 공개 메소드

public DataBindEvents ( Slick.Grid grid, SparkleXrm.GridEditor.DataViewBase dataView, string gridContainerDivId ) : void
grid Slick.Grid
dataView SparkleXrm.GridEditor.DataViewBase
gridContainerDivId string
리턴 void

DataBindSelectionModel() 공개 메소드

public DataBindSelectionModel ( Slick.Grid grid, SparkleXrm.GridEditor.DataViewBase dataView ) : void
grid Slick.Grid
dataView SparkleXrm.GridEditor.DataViewBase
리턴 void

DataBindXrmGrid() 공개 메소드

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
리턴 Slick.Grid

NewColumn() 공개 정적인 메소드

public static NewColumn ( string field, string name, int width ) : Slick.Column
field string
name string
width int
리턴 Slick.Column

ParseLayout() 공개 정적인 메소드

public static ParseLayout ( string layout ) : List
layout string
리턴 List

RowIcon() 공개 정적인 메소드

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
리턴 string

프로퍼티 상세

AddCheckBoxSelectColumn 공개적으로 프로퍼티

public bool AddCheckBoxSelectColumn
리턴 bool

MultiSelect 공개적으로 프로퍼티

public bool MultiSelect
리턴 bool

SelectActiveRow 공개적으로 프로퍼티

public bool SelectActiveRow
리턴 bool

ValidationPopupUseFitPosition 공개적으로 프로퍼티

public bool ValidationPopupUseFitPosition
리턴 bool