ASP.NET Core MVC Controls | ComponentOne
C1.Web.Mvc Namespace / TreeView Class / ExpandOnLoad Property






In This Topic
    ExpandOnLoad Property (TreeView)
    In This Topic
    Gets or sets a value that determines whether to toggle checkboxes when the user clicks the node header.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.DefaultValueAttribute(True)>
    Public Property ExpandOnLoad As System.Boolean
    'Usage
     
    
    Dim instance As TreeView
    Dim value As System.Boolean
     
    instance.ExpandOnLoad = value
     
    value = instance.ExpandOnLoad
    [System.ComponentModel.DefaultValue(true)]
    public System.bool ExpandOnLoad {get; set;}
    public read-write property ExpandOnLoad: System.Boolean; 
    System.ComponentModel.DefaultValueAttribute()
    public function get,set ExpandOnLoad : System.boolean
    [System.ComponentModel.DefaultValue(true)]
    public: __property System.bool get_ExpandOnLoad();
    public: __property void set_ExpandOnLoad( 
       System.bool value
    );
    [System.ComponentModel.DefaultValue(true)]
    public:
    property System.bool ExpandOnLoad {
       System.bool get();
       void set (    System.bool value);
    }
    Remarks
    The default value for this property is false, which causes checkboxes to be toggled only when the user clicks the checkbox itself (not the node header).
    See Also