getDataItemTop
array getDataItem()
Get the dataitem of the row.
Show/Hide Code
<script type="text/javacript">
function foo()
{
var _mastertable = grid.getMasterTable();
var _rows = _mastertable.getRows();
var _first_row = _rows[0];
var _dataitem = _first_row.getDataItem();
alert(_dataitem["customerNumber"]);
}
</script>
Supported from version: 1.0.0.0
getElementTop
[object] getElement()
Get the html object of the row.
Show/Hide Code
<script type="text/javacript">
function foo()
{
var _mastertable = grid.getMasterTable();
var _rows = _mastertable.getRows();
var _first_row = _rows[0];
_first_row.getElement().style.background = "yellow";
}
</script>
Supported from version: 1.0.0.0
getCellsTop
array getCells()
Get list of cells in the row.
Show/Hide Code
<script type="text/javacript">
function foo()
{
var _mastertable = grid.getMasterTable();
var _rows = _mastertable.getRows();
var _first_row = _rows[0];
var _cells = _first_row.getCells();
_cells[0].getElement().style.backgroundColor="red"; // Mark the first cell of the first row red.
}
</script>
Supported from version: 1.0.0.0
delTop
void del()
Request server to delete this row.
Show/Hide Code
<script type="text/javacript">
function foo()
{
var _mastertable = grid.getMasterTable();
var _rows = _mastertable.getRows();
var _first_row = _rows[0];
_first_row.del();
grid.commmit();
}
</script>
Supported from version: 1.0.0.0
startEditTop
void startEdit()
Open the form for user to edit data in this row.
Show/Hide Code
<script type="text/javacript">
function foo()
{
var _mastertable = grid.getMasterTable();
var _rows = _mastertable.getRows();
var _first_row = _rows[0];
_first_row.startEdit();
grid.commit();
}
</script>
Supported from version: 1.0.0.0
cancelEditTop
void cancelEdit()
Cancel the editing of user, no changes will be made on database.
Show/Hide Code
<script type="text/javacript">
function foo()
{
var _mastertable = grid.getMasterTable();
var _rows = _mastertable.getRows();
var _first_row = _rows[0];
_first_row.cancelEdit();
grid.commit();
}
</script>
Supported from version: 1.0.0.0
confirmEditTop
void confirmEdit()
Confirm the editing. Changes made on data row will be update to database.
Show/Hide Code
<script type="text/javacript">
function foo()
{
var _mastertable = grid.getMasterTable();
var _rows = _mastertable.getRows();
var _first_row = _rows[0];
_first_row.confirmEdit();
}
</script>
Supported from version: 1.0.0.0
selectTop
void select()
Select the row.
Show/Hide Code
<script type="text/javacript">
function foo()
{
var _mastertable = grid.getMasterTable();
var _rows = _mastertable.getRows();
var _first_row = _rows[0];
_first_row.select();
}
</script>
Supported from version: 1.0.0.0
deselectTop
void deselect()
Deselect the row.
s
Show/Hide Code
<script type="text/javacript">
function foo()
{
var _mastertable = grid.getMasterTable();
var _rows = _mastertable.getRows();
var _first_row = _rows[0];
_first_row.deselect();
}
</script>
Supported from version: 1.0.0.0
expandTop
void expand()
Expand tables detail for the row.
Show/Hide Code
<script type="text/javacript">
function foo()
{
var _mastertable = grid.getMasterTable();
var _rows = _mastertable.getRows();
var _first_row = _rows[0];
_first_row.expand();
grid.commit();
}
</script>
Supported from version: 1.0.0.0
collapseTop
void collapse()
Collapse tables detail for the row.
Show/Hide Code
<script type="text/javacript">
function foo()
{
var _mastertable = grid.getMasterTable();
var _rows = _mastertable.getRows();
var _first_row = _rows[0];
_first_row.collapse();
grid.commit();
}
</script>
Supported from version: 1.0.0.0
getDetailTablesTop
array getDetailTables()
Return list of tables details associated with this row.
Show/Hide Code
<script type="text/javacript">
function foo()
{
var _mastertable = grid.getMasterTable();
var _rows = _mastertable.getRows();
var _first_row = _rows[0];
var _detail_tables = _first_row.getDetailTables();
}
</script>
Supported from version: 1.0.0.0
isSelectedTop
bool isSelected()
Return whether a row is selected.
Show/Hide Code
<script type="text/javacript">
function foo()
{
var _mastertable = grid.getMasterTable();
var _rows = _mastertable.getRows();
var _first_row = _rows[0];
alert(_first_row.isSelected());
}
</script>
Supported from version: 1.0.0.0
isEditingTop
bool isEditing()
Return whether a row is in editing mode.
Show/Hide Code
<script type="text/javacript">
function foo()
{
var _mastertable = grid.getMasterTable();
var _rows = _mastertable.getRows();
var _first_row = _rows[0];
alert(_first_row.isEditing());
}
</script>
Supported from version: 1.0.0.0