GridClientEvents
The class holding all client-side events associated with the RadGrid control.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
[TypeConverter(typeof(ExpandableObjectConverter))]
public class GridClientEvents : ObjectWithState
Inheritance: objectObjectWithStateGridClientEvents
Inherited Members
Constructors
Properties
Gets or sets the client-side event which will be fired after active row have changed.
public virtual string OnActiveRowChanged { get; set; }
The active row changed event.
Gets or sets the client-side event which will be fired before a active row changes.
public virtual string OnActiveRowChanging { get; set; }
The active row changing event.
Gets or sets the client-side event which will be fired when the EditMode is Batch and a cell value have been changed.
public virtual string OnBatchEditCellValueChanged { get; set; }
Gets or sets the client-side event which will be fired when the EditMode is Batch and a cell value is changing. The event could be canceled.
public virtual string OnBatchEditCellValueChanging { get; set; }
Gets or sets the client-side event which will be fired after a cell have been closed for edit.
public virtual string OnBatchEditClosed { get; set; }
Gets or sets the client-side event which will be fired before closing a cell for edit.
public virtual string OnBatchEditClosing { get; set; }
Gets or sets a client-side event which helps in custom implementation of the batch editing functionality. Gets the value from the cell which is positioned in the GridTemplateColumn.ItemTemplate.
public virtual string OnBatchEditGetCellValue { get; set; }
Gets or sets a client-side event which helps in custom implementation of the batch editing functionality. Gets the value from the edit control which is positioned in the GridTemplateColumn.EditItemTemplate.
public virtual string OnBatchEditGetEditorValue { get; set; }
Gets or sets the client-side event which will be fired after a cell have been opened for edit.
public virtual string OnBatchEditOpened { get; set; }
Gets or sets the client-side event which will be fired before opening a cell for edit.
public virtual string OnBatchEditOpening { get; set; }
Gets or sets a client-side event which helps in custom implementation of the batch editing functionality. Sets the value from the cell which is positioned in the GridTemplateColumn.ItemTemplate.
public virtual string OnBatchEditSetCellValue { get; set; }
Gets or sets a client-side event which helps in custom implementation of the batch editing functionality. Sets the value from the edit control which is positioned in the GridTemplateColumn.EditItemTemplate.
public virtual string OnBatchEditSetEditorValue { get; set; }
This client-side event is after a column cell is deselected client-side.
public virtual string OnCellDeselected { get; set; }
This event is fired after a column cell has been deselected client-side.
Fired by
RadGrid Arguments
N/A Can be canceled
No Examples
ascx/aspx
<ClientEvents OnCellDeselected="CellDeselected" ...
JavaScript
<script>
function CellDeselected()
{
alert("Cell deselected!");
}
</script>
This client-side event is before a column cell is deselected client-side.
public virtual string OnCellDeselecting { get; set; }
This event is fired before a column cell has been deselected client-side.
Fired by
RadGrid Arguments
N/A Can be canceled
Yes Examples
ascx/aspx
<ClientEvents OnCellDeselecting="CellDeselecting" ...
JavaScript
<script>
function CellDeselecting()
{
alert("Cell deselecting!");
}
</script>
This client-side event is after a column cell is selected client-side.
public virtual string OnCellSelected { get; set; }
This event is fired after a column cell is selected client-side.
Fired by
RadGrid Arguments
N/A Can be canceled
No Examples
ascx/aspx
<ClientEvents OnCellSelected="CellSelected" ...
JavaScript
<script>
function CellSelected()
{
alert("Cell selected!");
}
</script>
This client-side event is fired before a column cell is selected client-side.
public virtual string OnCellSelecting { get; set; }
This event is fired before a column cell is selected client-side.
Fired by
RadGrid Arguments
N/A Can be canceled
Yes Examples
ascx/aspx
<ClientEvents OnCellSelecting="CellSelecting" ...
JavaScript
<script>
function CellSelecting()
{
alert("Selecting column cell!");
}
</script>
Gets or sets the client-side event which will be fired when a colum have been clicked.
public virtual string OnColumnClick { get; set; }
The on column click.
Gets or sets the client-side event which will be fired when a column is right clicked.
public virtual string OnColumnContextMenu { get; set; }
The on column context menu.
This client-side event is fired after a column available at client-side is created.
public virtual string OnColumnCreated { get; set; }
This event is fired after a column available at client-side is created.
Fired by
RadGridTable Arguments
RadGridTableColumn object Can be canceled
No Examples ascx/aspx
<ClientEvents OnColumnCreated="ColumnCreated" ...
JavaScript
<script>
function ColumnCreated(columnObject)
{
alert("Column with Index: " + columnObject.Index + " was created");
}
</script>
This client-side event is fired before column available at client-side creation.
public virtual string OnColumnCreating { get; set; }
This event is fired before column available at client-side creation.
Fired by
RadGridTable Arguments
N/A Can be canceled
No Examples
ascx/aspx
<ClientEvents OnColumnCreating="ColumnCreating" ...
JavaScript
<script>
function ColumnCreating()
{
alert("Creating column);
}
</script>
Gets or sets the client-side event which will be fired when a column have been double clicked.
public virtual string OnColumnDblClick { get; set; }
The column double click event.
This client-side event is fired when a column object is destroyed.
public virtual string OnColumnDestroying { get; set; }
This event is fired when a column object is destroyed.
Fired by
RadGridTable Arguments
N/A Can be canceled
No Examples
ascx/aspx
<ClientEvents OnColumnDestroying="ColumnDestroying" ...
JavaScript
<script>
function ColumnDestroying()
{
alert("Destroing column with Index: " + this.Index);
}
</script>
Gets or sets the client-side event which is fired when a column have been hidden.
public virtual string OnColumnHidden { get; set; }
The column hidden event.
Gets or sets the client-side event which is fired before a column have been hidden.
public virtual string OnColumnHiding { get; set; }
The column hiding event.
Gets or sets the client-side event which will be fired when a mouse leaves a column element.
public virtual string OnColumnMouseOut { get; set; }
The column mouse out event.
Gets or sets the client-side event which will be fired when a mouse hovers over a column element.
public virtual string OnColumnMouseOver { get; set; }
The column mouse over event.
Gets or sets the client-side event which will be fired after a column have been moved to the left.
public virtual string OnColumnMovedToLeft { get; set; }
The column moved to left event.
Gets or sets the client-side event which will be fired after a column have been moved to the right.
public virtual string OnColumnMovedToRight { get; set; }
The column moved to right event.
Gets or sets the clint-side event which will be fired before a column have been moved to the left.
public virtual string OnColumnMovingToLeft { get; set; }
The column moving to left event.
Gets or sets the clint-side event which will be fired before a column have been moved to the right.
public virtual string OnColumnMovingToRight { get; set; }
The column moving to right event.
Gets or sets the client-side event which will be fired when a column have been resized.
public virtual string OnColumnResized { get; set; }
The column resized event.
This client-side event is fired before a column is resized.
public virtual string OnColumnResizing { get; set; }
This event is fired before a column is resized.
Fired by
RadGridTable Arguments
columnIndex, columnWidth Can be canceled
Yes, return false to cancel Examples
ascx/aspx
<ClientEvents OnColumnResizing="ColumnResizing" ...
JavaScript
<script>
function ColumnResizing(columnIndex, columnWidth)
{
alert("Resizng column with Index: " + columnIndex + ", width: " + columnWidth);
}
OR
function ColumnResizing(columnIndex, columnWidth)
{
return false; //cancel ColumnResizing event
}
</script>
Gets or sets the client-side event which will be fired before a column have been shown.
public virtual string OnColumnShowing { get; set; }
The column showing event.
Gets or sets the client-side event which will be fired when a column is shown.
public virtual string OnColumnShown { get; set; }
The column shown event.
Gets or sets the client-side event which will be fired when a column have been swaped.
public virtual string OnColumnSwapped { get; set; }
The column swapped event.
Gets or sets the client-side event which will be fired before a column have been swapped.
public virtual string OnColumnSwapping { get; set; }
The column swapping event.
Gets or sets the client-side event which will be fired when a RadGrid command occurs.
public virtual string OnCommand { get; set; }
The command event.
This event is fired when the grid request data using client-side data-binding.
public virtual string OnDataBinding { get; set; }
This event is fired if request for data fails when using client-side data-binding.
public virtual string OnDataBindingFailed { get; set; }
This event is fired when the grid client-side data-binding is finished.
public virtual string OnDataBound { get; set; }
This event is fired when the grid client-side data is retrieved from the server.
public virtual string OnDataSourceResolved { get; set; }
Gets or sets the client-side event which will be fired before the filter menu is shown.
public virtual string OnFilterMenuShowing { get; set; }
The filter menu showing event.
This client-side event is fired after the grid is created.
public virtual string OnGridCreated { get; set; }
This event is fired after the grid is created.
Fired by
RadGrid Arguments
N/A Can be canceled
No Examples
ascx/aspx
<ClientEvents OnGridCreated="GridCreated" ...
JavaScript
<script>
function GridCreated()
{
alert("Grid with ClientID: " + this.ClientID + " was created");
}
</script>
This client-side event is fired before grid creation.
public virtual string OnGridCreating { get; set; }
This event is fired before grid creation.
Fired by
RadGrid Arguments
N/A Can be canceled
No Examples ascx/aspx
<ClientEvents OnGridCreating="GridCreating" ...
JavaScript
<script>
function GridCreating()
{
alert("Creting grid with ClientID: " + this.ClientID);
}
</script>
This client-side event is fired when RadGrid object is destroyed, i.e. on each window.onunload
public virtual string OnGridDestroying { get; set; }
This event is fired when RadGrid object is destroyed, i.e. on each window.onunload
Fired by
RadGrid Arguments
N/A Can be canceled
No Examples ascx/aspx
<ClientEvents OnGridCreating="GridDestroying" ...
JavaScript
<script>
function GridDestroying()
{
alert("Destroying grid with ClientID: " + this.ClientID);
}
</script>
Gets or sets the client-side event which is fired after a group have been collapsed.
public virtual string OnGroupCollapsed { get; set; }
The group collapsed event.
Gets or sets the client-side event which is fired before a group is collapsed.
public virtual string OnGroupCollapsing { get; set; }
The group collapsing event.
Gets or sets the client-side event which is fired after a group have been expanded.
public virtual string OnGroupExpanded { get; set; }
The group expanded event.
Gets or sets the client-side event which is fired before a group is expanded.
public virtual string OnGroupExpanding { get; set; }
The group expanding event.
Gets or sets the client-side event which is fired when RadGrid header RadContextMenu fires its 'Showing' event.
public virtual string OnHeaderMenuShowing { get; set; }
The header menu showing event.
Gets or sets the client-side event which will be fired after a hierarchy have have been collapsed.
public virtual string OnHierarchyCollapsed { get; set; }
The on hierarchy collapsed.
Gets or sets the client-side event which will be fired before a hierarchy is collapsed.
public virtual string OnHierarchyCollapsing { get; set; }
The hierarchy collapsing event.
Gets or sets the client-side event which is fired after a hierarchy have been expanded.
public virtual string OnHierarchyExpanded { get; set; }
The hierarchy expanded event.
Gets or sets the client-side event which is fired before a hierarchy is expanded.
public virtual string OnHierarchyExpanding { get; set; }
The hierarchy expanding event.
Gets or sets the client-side event which will be fired when the grid is foused and a key is pressed.
public virtual string OnKeyPress { get; set; }
The on key press.
This client-side event is fired after the MasterTableView is created.
public virtual string OnMasterTableViewCreated { get; set; }
This event is fired after the MasterTableView is created.
Fired by
RadGrid Arguments
N/A Can be canceled
No Examples
ascx/aspx
<ClientEvents OnMasterTableViewCreated="MasterTableViewCreated" ...
JavaScript
<script>
function MasterTableViewCreated()
{
alert("MasterTableView was created");
}
</script>
This client-side event is fired before the MasterTableView is created.
public virtual string OnMasterTableViewCreating { get; set; }
This event is fired before the MasterTableView is created.
Fired by
RadGrid Arguments
N/A Can be canceled
No Examples ascx/aspx
<ClientEvents OnMasterTableViewCreating="MasterTableViewCreating" ...
JavaScript
<script>
function MasterTableViewCreating()
{
alert("Creating MasterTableView");
}
</script>
Gets or sets the client-side event which will fired before a popup is shown.
public virtual string OnPopUpShowing { get; set; }
The pop up showing event.
Gets or sets the client-side event which will be fired when a row have been clicked.
public virtual string OnRowClick { get; set; }
The row click event.
public virtual string OnRowContextMenu { get; set; }
The client-side script for RadGrid.ClientSettings.ClientEvents.OnRowContextMenu kills any exceptions that occur in the event handler. This can make bugs hard to track down because it appears that nothing happens when actually the exception was killed before it becomes visible.
You can avoid this problem by putting a try/catch block around the event handler that sends an alert if an exception was thrown:
RadGrid1.ClientSettings.ClientEvents.OnRowContextMenu = " try { ... my event handling code ... } catch (exp) { alert(exp.message); }";
Gets or sets the client-side event which will be fired when a row have been created.
public virtual string OnRowCreated { get; set; }
The row created event.
Gets or sets the client-side event which will be fired before a row have been created.
public virtual string OnRowCreating { get; set; }
The row creating event.
Gets or sets the client-side event which will be fired when a row is data bound. Note that the event could only be used in client-side data binding scenario.
public virtual string OnRowDataBound { get; set; }
The row data bound event.
Gets or sets the client-side event which will be fired when a row have been double clicked.
public virtual string OnRowDblClick { get; set; }
Thes row double click event.
Gets or sets the client-side event which will be fired after a row have been deleted with GridClientDeleteColumn or deleteItem method.
public virtual string OnRowDeleted { get; set; }
The row deleted event.
Gets or sets the client-side event which will be fired before row have been deleted with GridClientDeleteColumn or deleteItem method.
public virtual string OnRowDeleting { get; set; }
The row deleting event.
Gets or sets the client-side event which will be fired when a row have been deselected.
public virtual string OnRowDeselected { get; set; }
The row deselected event.
Gets or sets the client-side event which will be fired before a row is deselected.
public virtual string OnRowDeselecting { get; set; }
The row deselecting event.
Gets or sets the client-side event which will be fired when a row have been destroyed.
public virtual string OnRowDestroying { get; set; }
The row destroying event.
Gets or sets the client-side event which will be fired when a RadGrid row is being dragged.
public virtual string OnRowDragging { get; set; }
The row dragging event.
Gets or sets the client-side event which will be fired when a RadGrid row drag starts.
public virtual string OnRowDragStarted { get; set; }
The row drag started event.
Gets or sets the client-side event which is fired when a RadGrid row is dropped.
public virtual string OnRowDropped { get; set; }
The on row dropped event.
Gets or sets the client-side event which is fired when a RadGrid row is dropping.
public virtual string OnRowDropping { get; set; }
The on row dropping event.
Gets or sets the client-side event which will be fired when a row have been hidden.
public virtual string OnRowHidden { get; set; }
The on row hidden.
Gets or sets the client-side event which will be fired before a row is hidden.
public virtual string OnRowHiding { get; set; }
The row hiding event.
Gets or sets the client-side event which will be fired when a mouse leaves a row element.
public virtual string OnRowMouseOut { get; set; }
The row mouse out event.
Gets or sets the client-side event which will be fired when a mouse hovers over a row element.
public virtual string OnRowMouseOver { get; set; }
The row mouse over event.
Gets or sets the client-side event which is fired when a row have been resized.
public virtual string OnRowResized { get; set; }
The row resized event.
Gets or sets the client-side event which will be fired before a row have been resized.
public virtual string OnRowResizing { get; set; }
The on row resizing.
Gets or sets the client-side event which will be fired when a row have been selected.
public virtual string OnRowSelected { get; set; }
The row selected event.
Gets or sets the client-side event which will be fired before a row is selected.
public virtual string OnRowSelecting { get; set; }
The row selecting event.
Gets or sets the client-side event which will be fired before a row is shown.
public virtual string OnRowShowing { get; set; }
The row showing event.
Gets or sets the client-side event which will be fired when a row have been shown.
public virtual string OnRowShown { get; set; }
The row shown event.
Gets or sets the client-side event which will be fired when RadGrid is scrolled.
public virtual string OnScroll { get; set; }
The on scroll.
This client-side event is fired after the table is created.
public virtual string OnTableCreated { get; set; }
This event is fired after the table is created.
Fired by
RadGrid Arguments
RadGridTable Object Can be canceled
No Examples ascx/aspx
<ClientEvents OnTableCreated="TableCreated" ...
JavaScript
<script>
function TableCreated(tableObject)
{
alert("DetailTable with ClientID: " + tableObject.ClientID + " was created");
}
</script>
This client-side event is fired before table creation.
public virtual string OnTableCreating { get; set; }
This event is fired before table creation.
Fired by
RadGrid Arguments
N/A Can be canceled
No Examples
ascx/aspx
<ClientEvents OnTableCreating="TableCreating" ...
JavaScript
<script>
function TableCreating()
{
alert("Creating DetailTable");
}
</script>
This client-side event is fired when table object is destroyed.
public virtual string OnTableDestroying { get; set; }
This event is fired when table object is destroyed.
Fired by
RadGrid Arguments
N/A Can be canceled
No Examples
ascx/aspx
<ClientEvents OnTableDestroying="TableDestroying" ...
JavaScript
<script>
function TableDestroying()
{
alert("Destroing DetailTable with ClientID: " + this.ClientID);
}
</script>
Gets or sets the client-side event which will be fired when a user performs an action to the RadGrid control which will cause a postback or change the data. The event could be used to popup a dialog and verify if the user is certain in performing the current action.
public virtual string OnUserAction { get; set; }