Spread for ASP.NET 10 Product Documentation > Client-Side Scripting Reference > Scripting Members > Methods > GetActiveChildSheetView |
Gets the sheet view object of the active child sheet in hierarchical mode.
[JavaScript]
var ret = FpSpread1.GetActiveChildSheetView();
Spread object or Null
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.
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> |