OnEntryRecordPropertyChanged
Applies to: SharePoint Foundation 2010
In this article
Description
Arguments
Example
Description
Occurs when an entry record’s property is changed, including all user and programmatic edits.
Note
Depending on the property type of this cell, this event may be fired multiple times for a single edit indicating validation changes.
Arguments
Argument |
Description |
---|---|
recordKey |
The record key. |
fieldKey |
Describes the field key. |
oldProp |
The old property value. |
newProp |
The new property value. |
propType |
Describes the property type. |
changeKey |
The change key for the change. |
validationState |
ValidationState is a value from the SP.JsGrid.ValidationState enum. legal values are: Valid, Pending, Invalid. |
Example
This code calls the GotHere function when a OnEntryRecordPropertyChanged 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 an entry record’s property is changed, including all user and programmatic edits.
jsGridControl.AttachEvent(SP.JsGrid.EventType. OnEntryRecordPropertyChanged, GotHere);
jsGridControl.Init(jsGridParams);
}
};
function GotHere(obj) {
alert('Got Here, ' + obj.fieldKey);
}
</script>
See Also
Concepts
Other Resources
JS Grid Control Functions