Ewa.EwaControl.remove_gridSynchronized(function)
Applies to: apps for SharePoint | SharePoint Server 2010
Unsubscribes the specified event handler for the [gridSynchronized] event.
Ewa.EwaControl.remove_gridSynchronized(function);
Parameters
function
The event handler to unsubscribe from the event.
Return Value
None.
Example
The following code example shows how to unsubscribe the specified event handler from the [gridSynchronized] event.
<script type="text/javascript">
var ewa = null;
// Add event handler for onload event.
if (window.attachEvent)
{
window.attachEvent("onload", ewaOmPageLoad);
}
else
{
window.addEventListener("DOMContentLoaded", ewaOmPageLoad, false);
}
// Add event handler for applicationReady event.
function ewaOnPageLoad()
{
if (typeof (Ewa) != "undefined")
{
Ewa.EwaControl.add_applicationReady(ewaApplicationReady);
}
else
{
alert("Error - the EWA JS is not loaded.");
}
}
function ewaApplicationReady()
{
ewa = Ewa.EwaControl.getInstances().getItem(0);
// Add event handler for gridSynchronized event.
ewa.add_gridSynchronized(gridSync);
}
function myFunction
{
// Remove event handler from gridSynchronized event.
ewa.remove_gridSynchronized(gridSync);
}
</script>