Spread for ASP.NET 12 Product Documentation
GetActiveChildSheetView
Spread for ASP.NET 12 Product Documentation > Client-Side Scripting Reference > Scripting Members > Methods > GetActiveChildSheetView

Gets the sheet view object of the active child sheet in hierarchical mode.

Syntax

[JavaScript]

var ret = FpSpread1.GetActiveChildSheetView();

Parameters

none
None

Return Type

Spread object or Null

Remarks

This method gets the sheet view of the active child sheet. This method will not return null when the Spread control has an active child sheet. If the active Spread is a child sheet, a Spread object is returned. If it is not a child sheet, Null is returned.

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 FpSpread1_ActiveCellChanged(event) {
 var sstrresult = newString();
if(document.getElementById('<%=FpSpread1.ClientID >').GetActiveChildSheetView()!=null) {
astrresult="FpSpread1's GetActiveChildSheetView=FpSpread1.ClientID >').GetActiveChildSheetView().id;
}else {
astrresult="FpSpread1's GetActiveChildSheetView=lbl_test.ClientID %>').innerHTML=astrresult;
}
function Button1_onclick() ...{
var id = "(none)";
if(document.getElementById('<%=FpSpread1.ClientID %>').GetActiveChildSheetView()!=null)
id = document.getElementById('<%=FpSpread1.ClientID %>').GetActiveChildSheetView().id;
alert(id);
}
</script>
See Also