Spread for ASP.NET 8.0 Product Documentation > Client-Side Scripting Reference > Scripting Members > Methods > GetSpread |
Gets the Spread object with the specified HTML element.
[JavaScript]
var spread = FpSpread1.GetSpread(element);
Spread object (HTML element)
This method returns the Spread object (an HTML element) on the client that contains the specific HTML element. If there is no Spread object, the method returns Null.
This is a sample that contains the method. On the client side, the script that contains the method would look like this:
JavaScript |
Copy Code
|
---|---|
<script type="text/javascript"> function onBodyClick() { var spread = FpSpread1.GetSpread(event.srcElement); if (spread!=null) { alert("You clicked spread "+spread.id); var parentSpread = spread.GetParentSpread(); if (parentSpread!=null) { alert("The parent Spread is " + parentSpread.id); } } } </script> |