OnRecordChecked
Applies to: SharePoint Foundation 2010
In this article
Description
Arguments
Example
Description
Occurs when one or more records is checked or unchecked using the record indicator check box.
Arguments
Arguments |
Description |
---|---|
recordKeySet |
Set the record key. |
bChecked |
A Boolean indicating the record is checked. |
Example
This code calls the GotHere function when a OnRecordChecked 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 one or more records is checked or unchecked using the record indicator check box.
jsGridControl.AttachEvent(SP.JsGrid.EventType. OnRecordChecked, GotHere);
jsGridControl.Init(jsGridParams);
}
};
function GotHere(obj) {
alert('Got Here, ' + obj. bChecked);
}
</script>
See Also
Concepts
Other Resources
JS Grid Control Functions