Spread for ASP.NET 11 Product Documentation
GetChildSpread
Spread for ASP.NET 11 Product Documentation > Client-Side Scripting Reference > Scripting Members > Methods > GetChildSpread

Gets the child Spread object on the client of the specified relation at the specified row.

Syntax

[JavaScript]

var ret = FpSpread1.GetChildSpread(row,relation);

Parameters

row
Integer, row index
relation
Integer, relation index

Return Type

Spread object (HTML element)

Remarks

This method gets the Spread object of the page displayed on the client. Both row and relation indexes must be valid.

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 type="text/javascript">
   function getChild(){
       var csprd = FpSpread1.GetChildSpread(FpSpread1.ActiveRow,1);
       alert("Child is " + csprd);
   }
</script>
See Also