OnGridErrorStateChanged

Applies to: SharePoint Foundation 2010

In this article
Description
Arguments
Example

JS Grid Control Events

Description

Occurs when the grid goes from a state of having one or more errors to having no errors, or the other way around.

Arguments

Argument

Description

bAnyErrors

A Boolean indicating that an error occurred.

Example

This code calls the GotHere function when a OnGridErrorStateChanged 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 the grid goes from a state of having one or more errors to having no errors, or the other way around.

            jsGridControl.AttachEvent(SP.JsGrid.EventType.OnCellEditCompleted, GotHere);

            jsGridControl.Init(jsGridParams);
        }
    };
    function GotHere(obj) {
        alert(' OnGridErrorStateChanged, ' + obj. bAnyErrors);

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