OnInitialChangesForChangeKeyComplete
Applies to: SharePoint Foundation 2010
In this article
Description
Arguments
Example
Description
Occurs the first time all changes associated with a given change key have been validated; that is no asynchronous calls are pending.
As an example, this could include two asynchronous calls, one for BeginValidateNormalizeConvert and one for inserting new rows.
Event Arguments
Arguments
Argument |
Description |
---|---|
changeKey |
The unique change key. |
Example
This code calls the GotHere function when a OnInitialChangesForChangeKeyComplete 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 the first time all changes associated with a given change key have been validated; that is no asynchronous calls are pending.
jsGridControl.AttachEvent(SP.JsGrid.EventType. OnInitialChangesForChangeKeyComplete, GotHere);
jsGridControl.Init(jsGridParams);
}
};
function GotHere(obj) {
alert('Got Here, ' + obj. changeKey);
}
</script>
See Also
Concepts
Other Resources
JS Grid Control Functions