OnEntryRecordCommitted

Applies to: SharePoint Foundation 2010

In this article
Description
Arguments
Example

JS Grid Control Events

Description

Occurs when a new entry record appears on the JS Grid control.

Arguments

Argument

Description

origRecKey

The record key of the original entry

recordKey

The record key of the new entry record.

changeKey

The change key.

Example

This code calls the GotHere function when a OnEntryRecordCommitted 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 Occurs when a new entry record appears on the grid.
            jsGridControl.AttachEvent(SP.JsGrid.EventType. OnEntryRecordCommitted, GotHere);

            jsGridControl.Init(jsGridParams);
        }
    };
    function GotHere(obj) {
        alert('Got Here, ' + obj.recordKey);

    }
</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