Spread ASP.NET 17
Spread for ASP.NET 17 Product Documentation / Client-Side Scripting Reference / Scripting Members / Methods / GetActiveChildSheetView
In This Topic
    GetActiveChildSheetView
    In This Topic

    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: "+document.getElementById('<%=FpSpread1.ClientID %>').GetActiveChildSheetView().id;
    }else {
    astrresult="FpSpread1's GetActiveChildSheetView: null.";
    }
    document.getElementById('<%=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