OnBeforeCancelInsertTop
OnBeforeCancelInsert
Occur when a tableview is about to cancel inserting a new row. You return true
on handle function to approve action, return false
to cancel action.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnBeforeCancelInsert"] = "Handle_OnBeforeCancelInsert";
...
?>
...
<script type="text/javascript">
function Handle_OnBeforeCancelInsert(sender,args)
{
var _tableview = args["TableView"];
alert("A tableview is about to cancel inserting a new row.");
return true; // Approve action
}
</script>
Supported from version: 2.1.0.0
OnBeforeColumnFilterTop
OnBeforeColumnFilter
Occur before grid filters records with this column. You return true
on handle function to approve action, return false
to cancel action.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnBeforeColumnFilter"] = "Handle_OnBeforeColumnFilter";
...
?>
...
<script type="text/javascript">
function Handle_OnBeforeColumnFilter(sender,args)
{
var _column = args["Column"];
var _expression = args["Exp"];
var _value= args["Value"];
alert("Column is about to be filtered.");
return true; // Approve action
}
</script>
Supported from version: 1.0.0.0
OnBeforeColumnGroupTop
OnBeforeColumnGroup
Occur before a column is grouped. You return true
on handle function to approve action, return false
to cancel action.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnBeforeColumnGroup"] = "Handle_OnBeforeColumnGroup";
...
?>
...
<script type="text/javascript">
function Handle_OnBeforeColumnGroup(sender,args)
{
var _column = args["Column"];
alert("Column is about to be grouped.");
return true; // Approve action
}
</script>
Supported from version: 1.0.0.0
OnBeforeColumnResizeTop
OnBeforeColumnResize
Occur before column is resized. You return true
on handle function to approve action, return false
to cancel action.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnBeforeColumnResize"] = "Handle_OnBeforeColumnResize";
...
?>
...
<script type="text/javascript">
function Handle_OnBeforeColumnResize(sender,args)
{
var _column = args["Column"];
alert("Column is about to resize");
return true; // Approve action
}
</script>
Supported from version: 1.0.0.0
OnBeforeColumnSortTop
OnBeforeColumnSort
Occur before a column is sorted. You return true
on handle function to approve action, return false
to cancel action.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnBeforeColumnSort"] = "Handle_OnBeforeColumnSort";
...
?>
...
<script type="text/javascript">
function Handle_OnBeforeColumnSort(sender,args)
{
var _column = args["Column"];
var _order = args["Order"];
alert("Column is about to be sorted");
return true; // Approve action
}
</script>
Supported from version: 1.0.0.0
OnBeforeConfirmInsertTop
OnBeforeConfirmInsert
Occur when a tableview is about to confirm inserting a new row.You return true
on handle function to approve action, return false
to cancel action.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnBeforeConfirmInsert"] = "Handle_OnBeforeConfirmInsert";
...
?>
...
<script type="text/javascript">
function Handle_OnBeforeConfirmInsert(sender,args)
{
var _tableview = args["TableView"];
alert("A tableview is about to confirm inserting a new row.");
return true; // Approve action
}
</script>
Supported from version: 2.1.0.0
OnBeforeDetailTableCollapseTop
OnBeforeDetailTableCollapse
Occur before detail tables of a row are collapsed. You return true
on handle function to approve action, return false
to cancel action.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnBeforeDetailTableCollapse"] = "Handle_OnBeforeDetailTableCollapse";
...
?>
...
<script type="text/javascript">
function Handle_OnBeforeDetailTableCollapse(sender,args)
{
var _row = args["Row"];
alert("Detail tables are about to be collapsed");
return true; // Approve action
}
</script>
Supported from version: 1.0.0.0
OnBeforeDetailTablesExpandTop
OnBeforeDetailTablesExpand
Occur before detail tables of a row are expanded. You return true
on handle function to approve action, return false
to cancel action.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnBeforeDetailTablesExpand"] = "Handle_OnBeforeDetailTablesExpand";
...
?>
...
<script type="text/javascript">
function Handle_OnBeforeDetailTablesExpand(sender,args)
{
var _row = args["Row"];
alert("Detail tables of a row are about to be expanded");
return true; // Approve action
}
</script>
Supported from version: 1.0.0.0
OnBeforeGridCommitTop
OnBeforeGridCommit
Occur before grid commit changes to server. You return true
on handle function to approve action, return false
to cancel action.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnBeforeGridCommit"] = "Handle_OnBeforeGridCommit";
...
?>
...
<script type="text/javascript">
function Handle_OnBeforeGridCommit(sender,args)
{
alert("Grid is about to commit");
return true; // Approve action
}
</script>
Supported from version: 1.0.0.0
OnBeforePageChangeTop
OnBeforePageChange
Occur before a tableview changes page index. You return true
on handle function to approve action, return false
to cancel action.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnBeforePageChange"] = "Handle_OnBeforePageChange";
...
?>
...
<script type="text/javascript">
function Handle_OnBeforePageChange(sender,args)
{
var _tableview = args["TableView"];
var _pageindex = args["PageIndex"];
alert("Tableview is about to change page.");
return true; // Approve action
}
</script>
Supported from version: 1.0.0.0
OnBeforeRowCancelEditTop
OnBeforeRowCancelEdit
Occur when a row is about to be cancelled changes.You return true
on handle function to approve action, return false
to cancel action.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnBeforeRowCancelEdit"] = "Handle_OnBeforeRowCancelEdit";
...
?>
...
<script type="text/javascript">
function Handle_OnBeforeRowCancelEdit(sender,args)
{
var _row = args["Row"];
alert("A row is is about to be cancelled changes.");
return true; // Approve action
}
</script>
Supported from version: 1.0.0.0
OnBeforeRowConfirmEditTop
OnBeforeRowConfirmEdit
Occur when a row is about to be confirmed changes.You return true
on handle function to approve action, return false
to cancel action.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnBeforeRowConfirmEdit"] = "Handle_OnBeforeRowConfirmEdit";
...
?>
...
<script type="text/javascript">
function Handle_OnBeforeRowConfirmEdit(sender,args)
{
var _row = args["Row"];
alert("A row is is about to be confirmed changes.");
return true; // Approve action
}
</script>
Supported from version: 1.0.0.0
OnBeforeRowDeleteTop
OnBeforeRowDelete
Occur when a row is about to be deleted.You return true
on handle function to approve action, return false
to cancel action.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnBeforeRowDelete"] = "Handle_OnBeforeRowDelete";
...
?>
...
<script type="text/javascript">
function Handle_OnBeforeRowDelete(sender,args)
{
var _row = args["Row"];
alert("A row is is about to be deleted.");
return true; // Approve action
}
</script>
Supported from version: 1.0.0.0
OnBeforeRowDeselectTop
OnBeforeRowDeselect
Occur before a row is deselected. You return true
on handle function to approve action, return false
to cancel action.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnBeforeRowDeselect"] = "Handle_OnBeforeRowDeselect";
...
?>
...
<script type="text/javascript">
function Handle_OnBeforeRowDeselect(sender,args)
{
var _row = args["Row"];
alert("Row is about to be deselected.");
return true; // Approve action
}
</script>
Supported from version: 1.0.0.0
OnBeforeRowSelectTop
OnBeforeRowSelect
Occur before a row is selected. You return true
on handle function to approve action, return false
to cancel action.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnBeforeRowSelect"] = "Handle_OnBeforeRowSelect";
...
?>
...
<script type="text/javascript">
function Handle_OnBeforeRowSelect(sender,args)
{
var _row = args["Row"];
alert("A row is about to be selected ");
return true; // Approve action
}
</script>
Supported from version: 1.0.0.0
OnBeforeRowStartEditTop
OnBeforeRowStartEdit
Occur when a row was changed to edit mode. You return true
on handle function to approve action, return false
to cancel action.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnBeforeRowStartEdit"] = "Handle_OnBeforeRowStartEdit";
...
?>
...
<script type="text/javascript">
function Handle_OnBeforeRowStartEdit(sender,args)
{
var _row = args["Row"];
alert("A row is is about to be edited.");
return true; // Approve action
}
</script>
Supported from version: 1.0.0.0
OnBeforeStartInsertTop
OnBeforeStartInsert
Occur when a tableview is about to start inserting a new row.You return true
on handle function to approve action, return false
to cancel action.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnBeforeStartInsert"] = "Handle_OnBeforeStartInsert";
...
?>
...
<script type="text/javascript">
function Handle_OnBeforeStartInsert(sender,args)
{
var _tableview = args["TableView"];
alert("A tableview is about to start inserting a new row.");
return true; // Approve action
}
</script>
Supported from version: 2.1.0.0
OnCancelInsertTop
OnCancelInsert
Occur when a tableview cancels inserting a row.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnCancelInsert"] = "Handle_OnCancelInsert";
...
?>
...
<script type="text/javascript">
function Handle_OnCancelInsert(sender,args)
{
var _row = args["TableView"];
alert("A tableview cancels inserting a row.");
}
</script>
Supported from version: 2.1.0.0
OnCellClickTop
OnCellClick
Occur when a cell is click.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnCellClick"] = "Handle_OnCellClick";
...
?>
...
<script type="text/javascript">
function Handle_OnCellClick(sender,args)
{
var _cell = args["Cell"];
var _event = args["Event"];
alert("click");
}
</script>
Supported from version: 2.0.0.0
OnCellMouseOutTop
OnCellMouseOut
Occur when mouse is out of a cell.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnCellMouseOut"] = "Handle_OnCellMouseOut";
...
?>
...
<script type="text/javascript">
function Handle_OnCellMouseOut(sender,args)
{
var _cell = args["Cell"];
var _event = args["Event"];
alert("Mouseout");
}
</script>
Supported from version: 2.0.0.0
OnCellMouseOverTop
OnCellMouseOver
Occur when mouse is over a row.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnCellMouseOver"] = "Handle_OnCellMouseOver";
...
?>
...
<script type="text/javascript">
function Handle_OnCellMouseOver(sender,args)
{
var _cell = args["Cel"];
var _event = args["Event"];
alert("MouseOver");
}
</script>
Supported from version: 2.0.0.0
OnColumnClickTop
OnColumnClick
Occur when a column was clicked.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnColumnClick"] = "Handle_OnColumnClick";
...
?>
...
<script type="text/javascript">
function Handle_OnColumnClick(sender,args)
{
var _column = args["Column"];
var _event = args["Event"];
alert("Column was clicked");
}
</script>
Supported from version: 1.0.0.0
OnColumnDoubleClickTop
OnColumnDoubleClick
Occur when a column was double-clicked.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnColumnDoubleClick"] = "Handle_OnColumnDoubleClick";
...
?>
...
<script type="text/javascript">
function Handle_OnColumnDoubleClick(sender,args)
{
var _column = args["Column"];
var _event = args["Event"];
alert("Column was double-clicked");
}
</script>
Supported from version: 1.0.0.0
OnColumnFilterTop
OnColumnFilter
Occur when grid filtered records with this column.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnColumnFilter"] = "Handle_OnColumnFilter";
...
?>
...
<script type="text/javascript">
function Handle_OnColumnFilter(sender,args)
{
var _column = args["Column"];
var _expression = args["Exp"];
var _value= args["Value"];
alert("Column was filtered.");
}
</script>
Supported from version: 1.0.0.0
OnColumnGroupTop
OnColumnGroup
Occur when a column was grouped.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnColumnGroup"] = "Handle_OnColumnGroup";
...
?>
...
<script type="text/javascript">
function Handle_OnColumnGroup(sender,args)
{
var _column = args["Column"];
alert("Column was grouped.");
}
</script>
Supported from version: 1.0.0.0
OnColumnMouseOutTop
OnColumnMouseOut
Occur when mouse is out of a column.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnColumnMouseOut"] = "Handle_OnColumnMouseOut";
...
?>
...
<script type="text/javascript">
function Handle_OnColumnMouseOut(sender,args)
{
var _column = args["Column"];
var _event = args["Event"];
alert("Mouse was out of column");
}
</script>
Supported from version: 1.0.0.0
OnColumnMouseOverTop
OnColumnMouseOver
Occur when mouse is over a column.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnColumnMouseOver"] = "Handle_OnColumnMouseOver";
...
?>
...
<script type="text/javascript">
function Handle_OnColumnMouseOver(sender,args)
{
var _column = args["Column"];
var _event = args["Event"];
alert("Mouse was over column");
}
</script>
Supported from version: 1.0.0.0
OnColumnResizeTop
OnColumnResize
Occur when a column was resized.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnColumnResize"] = "Handle_OnColumnResize";
...
?>
...
<script type="text/javascript">
function Handle_OnColumnResize(sender,args)
{
var _column = args["Column"];
alert("Column was resized");
}
</script>
Supported from version: 1.0.0.0
OnColumnSortTop
OnColumnSort
Occur when a column was sorted.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnColumnSort"] = "Handle_OnColumnSort";
...
?>
...
<script type="text/javascript">
function Handle_OnColumnSort(sender,args)
{
var _column = args["Column"];
var _order = args["Order"];
alert("Column was sorted");
}
</script>
Supported from version: 1.0.0.0
OnConfirmInsertTop
OnConfirmInsert
Occur when a tableview confirms inserting a row.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnConfirmInsert"] = "Handle_OnConfirmInsert";
...
?>
...
<script type="text/javascript">
function Handle_OnConfirmInsert(sender,args)
{
var _row = args["TableView"];
alert("A tableview confirms inserting a row.");
}
</script>
Supported from version: 2.1.0.0
OnDetailTableCollapseTop
OnDetailTableCollapse
Occur when detail tables of a row were collapsed.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnDetailTableCollapse"] = "Handle_OnDetailTableCollapse";
...
?>
...
<script type="text/javascript">
function Handle_OnDetailTableCollapse(sender,args)
{
var _row = args["Row"];
alert("Detail tables were collapsed");
}
</script>
Supported from version: 1.0.0.0
OnDetailTablesExpandTop
OnDetailTablesExpand
Occur when detail tables of a row were expanded.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnDetailTablesExpand"] = "Handle_OnDetailTablesExpand";
...
?>
...
<script type="text/javascript">
function Handle_OnDetailTablesExpand(sender,args)
{
var _row = args["Row"];
alert("Detail tables were expanded");
}
</script>
Supported from version: 1.0.0.0
OnGridCommitTop
OnGridCommit
Occur when grid commited changes to server.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnGridCommit"] = "Handle_OnGridCommit";
...
?>
...
<script type="text/javascript">
function Handle_OnGridCommit(sender,args)
{
alert("Grid was commited");
}
</script>
Supported from version: 1.0.0.0
OnInitTop
OnInit
Occur when KoolGrid is first initiated.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnInit"] = "Handle_OnInit";
...
?>
...
<script type="text/javascript">
function Handle_OnInit(sender,args)
{
alert("KoolGrid is initiated.");
}
</script>
Supported from version: 1.0.0.0
OnLoadTop
OnLoad
Occur when grid is loaded.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnLoad"] = "Handle_OnLoad";
...
?>
...
<script type="text/javascript">
function Handle_OnLoad(sender,args)
{
alert("KoolGrid is loaded.");
}
</script>
Supported from version: 1.0.0.0
OnPageChangeTop
OnPageChange
Occur whena tableview changed page index.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnPageChange"] = "Handle_OnPageChange";
...
?>
...
<script type="text/javascript">
function Handle_OnPageChange(sender,args)
{
var _tableview = args["TableView"];
var _pageindex = args["PageIndex"];
alert("Tableview changed page.");
}
</script>
Supported from version: 1.0.0.0
OnRowCancelEditTop
OnRowCancelEdit
Occur when a row was cancelled the changes.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnRowCancelEdit"] = "Handle_OnRowCancelEdit";
...
?>
...
<script type="text/javascript">
function Handle_OnRowCancelEdit(sender,args)
{
var _row = args["Row"];
alert("A row was cancel the changes.");
}
</script>
Supported from version: 1.0.0.0
OnRowClickTop
OnRowClick
Occur when a row was clicked.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnRowClick"] = "Handle_OnRowClick";
...
?>
...
<script type="text/javascript">
function Handle_OnRowClick(sender,args)
{
var _row = args["Row"];
var _event = args["Event"];
alert("Row was clicked");
}
</script>
Supported from version: 1.0.0.0
OnRowConfirmEditTop
OnRowConfirmEdit
Occur when a row was confirmed changes.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnRowConfirmEdit"] = "Handle_OnRowConfirmEdit";
...
?>
...
<script type="text/javascript">
function Handle_OnRowConfirmEdit(sender,args)
{
var _row = args["Row"];
alert("A row was confirmed changes");
}
</script>
Supported from version: 1.0.0.0
OnRowDeleteTop
OnRowDelete
Occur when a row was deleted.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnRowDelete"] = "Handle_OnRowDelete";
...
?>
...
<script type="text/javascript">
function Handle_OnRowDelete(sender,args)
{
var _row = args["Row"];
alert("A row was deleted.");
}
</script>
Supported from version: 1.0.0.0
OnRowDeselectTop
OnRowDeselect
Occur when a row was deselected.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnRowDeselect"] = "Handle_OnRowDeselect";
...
?>
...
<script type="text/javascript">
function Handle_OnRowDeselect(sender,args)
{
var _row = args["Row"];
alert("Row was deselected");
}
</script>
Supported from version: 1.0.0.0
OnRowDoubleClickTop
OnRowDoubleClick
Occur when a row was double-clicked.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnRowDoubleClick"] = "Handle_OnRowDoubleClick";
...
?>
...
<script type="text/javascript">
function Handle_OnRowDoubleClick(sender,args)
{
var _row = args["Row"];
var _event = args["Event"];
alert("Row was double-clicked");
}
</script>
Supported from version: 1.0.0.0
OnRowMouseOutTop
OnRowMouseOut
Occur when mouse is out of a row.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnRowMouseOut"] = "Handle_OnRowMouseOut";
...
?>
...
<script type="text/javascript">
function Handle_OnRowMouseOut(sender,args)
{
var _row = args["Row"];
var _event = args["Event"];
alert("Mouseout");
}
</script>
Supported from version: 1.0.0.0
OnRowMouseOverTop
OnRowMouseOver
Occur when mouse is over a row.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnRowMouseOver"] = "Handle_OnRowMouseOver";
...
?>
...
<script type="text/javascript">
function Handle_OnRowMouseOver(sender,args)
{
var _row = args["Row"];
var _event = args["Event"];
alert("Mouseover");
}
</script>
Supported from version: 1.0.0.0
OnRowSelectTop
OnRowSelect
Occur when a row was selected.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnRowSelect"] = "Handle_OnRowSelect";
...
?>
...
<script type="text/javascript">
function Handle_OnRowSelect(sender,args)
{
var _row = args["Row"];
alert("Row is selected");
}
</script>
Supported from version: 1.0.0.0
OnRowStartEditTop
OnRowStartEdit
Occur when a row was changed to edit mode.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnRowStartEdit"] = "Handle_OnRowStartEdit";
...
?>
...
<script type="text/javascript">
function Handle_OnRowStartEdit(sender,args)
{
var _row = args["Row"];
alert("A row was in edit mode.");
}
</script>
Supported from version: 1.0.0.0
OnStartInsertTop
OnStartInsert
Occur when a tableview starts inserting a row.
Show/Hide Code
<?php
...
$grid->ClientSettings->ClientEvents["OnStartInsert"] = "Handle_OnStartInsert";
...
?>
...
<script type="text/javascript">
function Handle_OnStartInsert(sender,args)
{
var _row = args["TableView"];
alert("A tableview starts inserting a row.");
}
</script>
Supported from version: 2.1.0.0