OnInitialChangesForChangeKeyComplete

Applies to: SharePoint Foundation 2010

In this article
Description
Arguments
Example

JS Grid Control Events

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

JsGrid Client Side Reference

JS Grid Control Delegates

JS Grid Enumeration

JS Grid Control Events

Other Resources

JS Grid Control Functions