GridViewTable Class [Javascript]

Summary

Properties Description
id Get the id of the tableview.
Methods Description
selectAllRows Select all rows in the tableview.
deselectAllRows Deselect all rows in the tableview.
getRows Return all rows in the tableview.
getColumns Return all columns in the tableview.
getSelectedRows Return the array of selected rows.
goPage Navigate tableview to any certain page.
refresh Refresh the tableview.
add_group Add a new group to tableview.
change_group_order Change the group order in tableview.
remove_group Remove a group in tableview.
get_group_list Return array of field names that used in group list.
changePageSize Change the page size of tableview.
getPageIndex Get the current page index.
startInsert Request server to open insert form for user to add new data.
confirmInsert Request server to insert new added data to server.
cancelInsert Request server to cancel the inserting action.

Properties Detail

idTop

string id

Get the id of the tableview.

Show/Hide Code

Supported from version: 1.0.0.0

Methods Detail

selectAllRowsTop

void  selectAllRows()

Select all rows in the tableview.

Show/Hide Code

Supported from version: 1.0.0.0

deselectAllRowsTop

void  deselectAllRows()

Deselect all rows in the tableview.

Show/Hide Code

Supported from version: 1.0.0.0

getRowsTop

array getRows()

Return all rows in the tableview.

Show/Hide Code

Supported from version: 1.0.0.0

getColumnsTop

array getColumns()

Return all columns in the tableview.

Show/Hide Code

Supported from version: 1.0.0.0

getSelectedRowsTop

array getSelectedRows()

Return the array of selected rows.

Show/Hide Code

Supported from version: 1.0.0.0

goPageTop

void goPage(int page_index)

Navigate tableview to any certain page.

Show/Hide Code

Supported from version: 1.0.0.0

refreshTop

void refresh()

Refresh the tableview.

Show/Hide Code

Supported from version: 2.0.0.0

add_groupTop

void add_group(string group_field, [int position])

Add a new group to tableview. The new group will be put at specified position. If the position is not specified, the new group will be added to the end of group list.

Show/Hide Code

Supported from version: 2.0.0.0

change_group_orderTop

void change_group_order(string group_field, [int position])

Change the group order in tableview. The group will be moved to new position in group list.

Show/Hide Code

Supported from version: 2.0.0.0

remove_groupTop

void remove_group(string group_field)

Remove a group in tableview.

Show/Hide Code

Supported from version: 2.0.0.0

get_group_listTop

array get_group_list()

Return array of field names that used in group list.

Show/Hide Code

Supported from version: 2.0.0.0

changePageSizeTop

void changePageSize(int page_size)

Change the page size of tableview.

Show/Hide Code

Supported from version: 1.0.0.0

getPageIndexTop

int getPageIndex()

Get the current page index.

Show/Hide Code

Supported from version: 1.0.0.0

startInsertTop

void  startInsert()

Request server to open insert form for user to add new data.

Show/Hide Code

Supported from version: 1.0.0.0

confirmInsertTop

void  confirmInsert()

Request server to insert new added data to server.

Show/Hide Code

Supported from version: 1.0.0.0

cancelInsertTop

void  cancelInsert()

Request server to cancel the inserting action.

Show/Hide Code

Supported from version: 1.0.0.0