Search
Grid.detach Method
See Also
 






Control.detach override.

Namespace: MindFusion.DataViews
File: Grid.js

 Syntax

JavaScript  Copy Code

function detach ()

 Example

The following code handles the windowClose event of a WindowHost and detaches a grid that is rendered in this window:

JavaScript  Copy Code

var u = MindFusion.Common.UI;

window.windowClose.addEventListener(windowCloseEventHandler);

function windowCloseEventHandler(sender, args)
{
    sender.detach();
    sender.dispose();
    grid.detach();
}

 See Also