OnVacateChange
Applies to: SharePoint Foundation 2010
In this article
Description
Arguments
Remarks
Example
Description
This event occurs when the grid is no longer tracking a specified change.
Arguments
Argument |
Description |
---|---|
changeKey |
Change key |
Remarks
When the user makes a change, undoes that change, and then makes a different change. In that case the first change is vacated. After a OnVacateChange event any tracking of this change should be removed.
Example
This code calls the GotHere function when a OnVacateChange 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 the grid is no longer tracking a specified change.
jsGridControl.AttachEvent(SP.JsGrid.EventType. OnVacateChange, GotHere);
jsGridControl.Init(jsGridParams);
}
};
function GotHere(obj) {
alert('Got Here, ' + obj. changeKey);
}
</script>
See Also
Concepts
Other Resources
JS Grid Control Functions