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

Glossary Item Box

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

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