Spread for ASP.NET 10 Product Documentation > Client-Side Scripting Reference > Scripting Members > Methods > GetParentSpread |
Gets the parent Spread object of the displayed Spread object.
[JavaScript]
var spread = FpSpread1.GetParentSpread();
None
Spread object (HTML element)
This method gets the Spread object (HTML element) of the page displayed on the client. This method is for a hierarchical Spread.
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> |