OnRowErrorStateChanged
Applies to: SharePoint Foundation 2010
In this article
Description
Arguments
Example
Description
Occurs when a rows error state changes.
Arguments
Arguments |
Description |
---|---|
recordKey |
The record key. |
bAddingError |
A Boolean representing the addition of an error. |
bErrorCurrentlyInRow |
A Boolean indicating there is an error in the row. |
bRowHadError |
A Boolean indicating the row previously had an error. |
errorId |
The error ID. |
message |
The error message. |
Example
This code calls the GotHere function when a OnRowErrorStateChanged event is triggered.
<script type="text/javascript">
Type.registerNamespace("GridManager");
GridManager = function () {
this.Init = function (jsGridControl, initialData, props) {
control = jsGridControl;
var dataSource = new SP.JsGrid.StaticDataSource(initialData);
var jsGridParams = dataSource.InitJsGridParams();
// This event is triggered when a rows error state changes.
jsGridControl.AttachEvent(SP.JsGrid.EventType. OnRowErrorStateChanged, GotHere);
jsGridControl.Init(jsGridParams);
}
};
function GotHere(obj) {
alert('Got Here, ' + obj. recordKey);
}
</script>
See Also
Concepts
Other Resources
JS Grid Control Functions