Spread for ASP.NET 7.0 Product Documentation
GetParentSpread
See Also Support Options
Spread for ASP.NET 7.0 Product Documentation > Client-Side Scripting Reference > Scripting Members > Methods > GetParentSpread

Glossary Item Box

Gets the parent Spread object of the displayed Spread object.

Syntax

[JavaScript]

var spread = FpSpread1.GetParentSpread();

Parameters

None

Return Type

Spread object (HTML element)

Remarks

This method gets the Spread object (HTML element) of the page displayed on the client. This method is for a hierarchical Spread.

Example

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 language=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>

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.