Public Properties

  Name Description
Public property AdditionalAddRequestParameters Gets or sets the additional add request parameters. in json format, like {'a':'b', 'c','c'}
Public property AdditionalDeleteRequestParameters Gets or sets the additional delete request parameters. in json format, like {'a':'b', 'c','c'}.
Public property AdditionalEditRequestParameters Gets or sets the additional edit request parameters. in json format, like {'a':'b', 'c','c'}
Public property AdditionalLoadNodesRequestParameters Gets or sets the additional load nodes request parameters. in json format, like {'a':'b', 'c','c'}.
Public property AddNodeDataValueProvider Gets or sets the cutomized function which return a name of the new node.
Public property AddNodePromptDefaultValue Gets or sets the add node default value.
Public property AddNodePromptMessage Gets or sets the add node prompt message.
Public property AddNodeProvider Gets or sets the add node provider. The provider is to render a piece of html to the client, usually is a ul element. for example: HtmlGenericControl ulRoot = new HtmlGenericControl( "ul" ); astvMyTree.TreeViewHelper.ConvertTree( ulRoot, root, false ); foreach( Control c in ulRoot.Controls ) c.RenderControl( writer );
Public property AjaxIndicatorContainerID Gets or sets the ajax indicator container ID.
Public property AjaxIndicatorText Gets or sets the ajax indicator text.
Public property AjaxResponseEndTag Gets or sets the ajax response end tag.
Public property AjaxResponseStartTag Gets or sets the ajax response start tag.
Public property AutoPostBack Gets or sets a value indicating whether [auto post back].
Public property BasePath Gets or sets the base path. The base path is the folder which contains the astreeview client side stuff.
Public property ContextMenu Gets the context menu object.
Public property ContextMenuAddCommandName Gets or sets the name of the context menu add command.
Public property ContextMenuAddText Gets or sets the context menu add text.
Public property ContextMenuClientID Gets the context menu client ID.
Public property ContextMenuDeleteCommandName Gets or sets the name of the context menu delete command.
Public property ContextMenuDeleteText Gets or sets the context menu delete text.
Public property ContextMenuEditCommandName Gets or sets the name of the context menu edit command.
Public property ContextMenuEditText Gets or sets the context menu edit text.
Public property ContextMenuTargetCssClass Gets the context menu target CSS class for attaching context menu to node.
Public property CssClass Overridden. Gets or sets the Cascading Style Sheet (CSS) class rendered by the Web server control on the client.
Public property CssClassAjaxIndicatorContainer Gets or sets the CSS class of ajax indicator container.
Public property CssClassChecboxTextNode CssClassChecboxTextNode
Public property CssClassCheckbox Gets or sets the CSS class of checkbox.
Public property CssClassIcon Gets or sets the CSS class of the icons.
Public property CssClassLineBottom Gets or sets the CSS class for bottom line.
Public property CssClassLineMiddle Gets or sets the CSS class for middle line.
Public property CssClassLineNone Gets or sets the CSS class for no line.
Public property CssClassLineRoot Gets or sets the CSS class for root line.
Public property CssClassLineTop Gets or sets the CSS class for top line.
Public property CssClassLineVertical Gets or sets the CSS class for vertical line.
Public property CssClassPlusMinusIcon Gets or sets the CSS class of the open and close icon of the tree node.
Public property CssClassPlusMinusTextNode CssClassPlusMinusTextNode
Public property CssClassTextNode CssClassTextNode
Public property CssClassTextNodeContainer CssClassTextNodeContainer
Public property DataSource Gets or sets the data source.
Public property DataSourceDescriptor Gets or sets the data source descriptor. Datasource descriptor converts datasource to treeview nodes.
Public property DataTableRootNodeValue Gets or sets the data table root node value. When you set a datatable as datasource to astreeview, the astreeview need to know from which line of data it should start to convert to tree nodes.
Public property DefaultFolderIcon Gets or sets the default folder icon.
Public property DefaultFolderOpenIcon Gets or sets the default folder open icon.
Public property DefaultNodeIcon Gets or sets the default node icon.
Public property DeleteNodePromptMessage Gets or sets the delete node prompt message.
Public property DeleteNodeProvider Gets or sets the delete node provider. The delete provider should return a result code. For example: protected override void Render( HtmlTextWriter writer ) { if( this.returnCode == ASTreeViewAjaxReturnCode.OK ) writer.Write( (int)this.returnCode ); else writer.Write( this.errorMessage ); }
Public property DeleteNodeWithSubPromptMessage Gets or sets the delete node with sub prompt message.
Public property EditNodeProvider Gets or sets the edit node provider. The edit provider should return a result code to the client. For example: protected override void Render( HtmlTextWriter writer ) { if( this.returnCode == ASTreeViewAjaxReturnCode.OK ) writer.Write( (int)this.returnCode ); else writer.Write( this.errorMessage ); }
Public property EnableAjaxOnEditDelete Gets or sets a value indicating whether to enable ajax on edit and delete.
Public property EnableAutoLinkScriptFiles Obsolete. Gets or sets a value indicating whether [enable auto link script files].
Public property EnableCheckbox Gets or sets a value indicating whether to display check box.
Public property EnableContainerDragDrop EnableContainerDragDrop
Public property EnableContextMenu Gets or sets a value indicating whether to enable context menu.
Public property EnableContextMenuAdd Gets or sets a value indicating whether to enable the "Add" menu. Tree scope.
Public property EnableContextMenuDelete Gets or sets a value indicating whether to enable the "Delete" menu. Tree scope.
Public property EnableContextMenuEdit Gets or sets a value indicating whether to enable the "Edit" menu. Tree scope.
Public property EnableCustomizedNodeIcon Gets or sets a value indicating whether to use the customized node icons.
Public property EnableDebugMode Gets or sets a value indicating whether [enable debug mode].
Public property EnableDragDrop Gets or sets a value indicating whether the end user and drag and drop nodes.
Public property EnableDragDropOnIcon EnableDragDropOnIcon
Public property EnableEscapeInput Gets or sets a value indicating whether to escape the html tag for node editing.
Public property EnableFixedDepthDragDrop Gets or sets a value indicating whether the nodes can be dragged and dropped only it the depth which is same as the nodes'. Please note if the EnableFixedParentDragDrop is true, EnableFixedDepthDragDrop is true.
Public property EnableFixedParentDragDrop Gets or sets a value indicating whether the nodes are only can be drag drop under their parent.
Public property EnableHorizontalLock Gets or sets a value indicating whether to lock horizontal movement.
Public property EnableLeafOnlyCheckbox Gets or sets a value indicating whether to enable leaf only checkbox.
Public property EnableManageJSError Gets or sets a value indicating whether the astreeview should manage the javascript error cause by onXXX script properties.
Public property EnableMultiLineEdit Gets or sets a value indicating whether to display a textarea when editing nodes.
Public property EnableNodeIcon Gets or sets a value indicating whether to display node icons.
Public property EnableNodeSelection Gets or sets a value indicating whether the node is selectable.
Public property EnableOnNodeAddedScriptReturn EnableOnNodeAddedScriptReturn
Public property EnableOnNodeDeletedScriptReturn EnableOnNodeDeletedScriptReturn
Public property EnableOnNodeDragAndDropCompleteScriptReturn Gets or sets a value indicating whether to add 'return' before OnNodeDragAndDropCompleteScript
Public property EnableOnNodeDragAndDropStartScriptReturn Gets or sets a value indicating whether to add 'return' before OnNodeDragAndDropStartScript.
Public property EnableOnNodeEditedScriptReturn EnableOnNodeEditedScriptReturn
Public property EnableParentNodeExpand Gets or sets a value indicating whether expand the node if click on it.
Public property EnableParentNodeSelection Gets or sets a value indicating whether parent node is selectable.
Public property EnablePersistentTreeState Gets or sets a value indicating whether to submit the whole treeview state, values on postback. If you want to regenerate treeview on every postback, you may set it false. Generally it should be true to keep the treeview state on postback.
Public property EnableRightToLeftRender Gets or sets a value indicating whether to render the tree node from right to left.
Public property EnableRoot Gets or sets a value indicating whether to display a node as the root root node of the tree.
Public property EnableSaveStateEveryStep Gets or sets a value indicating whether client side should save the whole tree state on every change.
Public property EnableStripAjaxResponse Gets or sets a value indicating whether to stripe ajax response, that is to get the partial of the ajax response. This can be useful when to use the astreeview in a custom server side control.
Public property EnableTheme Gets or sets a value indicating whether to use theme.
Public property EnableThreeStateCheckbox Gets or sets a value indicating whether to enable three state checkbox. Please note that if EnableLeafOnlyCheckbox=true, then EnableThreeStateCheckbox will automatically be false;
Public property EnableTreeLines Gets or sets a value indicating whether tree lines.
Public property EnableTreeNodesViewState Gets or sets a value indicating whether to whole treeview state should be save in viewstate, if you want a lower html size rendering to client, turn it off, but it may cause lose of treenodes if the user perform a postback while the page is not fully loaded.
Public property ExpandDepth Gets or sets the expand depth of the treeview.
Public property ID Overridden. Gets or sets the programmatic identifier assigned to the server control.
Public property ImagePath Gets or sets the image path. The default value of ImagePath is BasePath + 'images/'
Public property ImgCheckboxChecked Gets or sets the checkbox checked icon.
Public property ImgCheckboxHalfChecked Gets or sets the checkbox half-checked icon.
Public property ImgCheckboxUnchecked Gets or sets the checkbox unchecked icon.
Public property ImgDragDropIndicator Gets or sets the drag drop indicator icon.
Public property ImgDragDropIndicatorSub Gets or sets the drag drop indicator sub icon.
Public property ImgMinusIcon Gets or sets the close icon of the node.
Public property ImgPlusIcon Gets or sets the open icon of the node.
Public property LoadNodesProvider Gets or sets the load nodes provider. The load nodes provider should renturn one or more UL elements. For example: HtmlGenericControl ulRoot = new HtmlGenericControl( "ul" ); astvMyTree.TreeViewHelper.ConvertTree( ulRoot, root, false ); foreach( Control c in ulRoot.Controls ) c.RenderControl( writer );
Public property MaxDepth Gets or sets the max depth of the treeview.
Public property MaxDepthReachedMessage Gets or sets the max depth reached message.
Public property OnNodeAddedScript Gets or sets the on node added script. Usage: OnNodeAddedScript="addedHandler(elem);" function addedHandler( elem ){ alert( elem.getAttribute("treeNodeValue") ); }
Public property OnNodeCheckedScript Gets or sets the on node checked script. Usage: OnNodeCheckedScript="nodeCheckHandler(elem);" function nodeCheckHandler(elem){ var cs = elem.parentNode.getAttribute("checkedState"); var csStr = ""; switch(cs){ case "0": csStr = "checked"; break; case "1": csStr = "half checked"; break; case "2": csStr = "unchecked"; break; } var val = csStr +" node:" + elem.parentNode.getAttribute("treeNodeValue"); alert( val ); }
Public property OnNodeDeletedScript Gets or sets the on node deleted script. Usage: OnNodeDeletedScript="deletedHandler( val );" function deletedHandler( val ){ alert( val ); }
Public property OnNodeDragAndDropCompleteScript Gets or sets the on node drag and drop complete script. Usage: OnNodeDragAndDropCompleteScript="dndHandler(elem);" function dndHandler( elem ){ alert( elem.getAttribute("treeNodeValue") ); }
Public property OnNodeDragAndDropStartScript Gets or sets the on node drag and drop start script. Usage: OnNodeDragAndDropStartScript="dndStartHandler(elem);" function dndStartHandler( elem ){ alert( elem.getAttribute("treeNodeValue") ); }
Public property OnNodeEditedScript Gets or sets the on node edited script. Usage: OnNodeEditedScript="editedHandler(elem);" function editedHandler( elem ){ alert( elem.getAttribute("treeNodeValue") ); }
Public property OnNodeSelectedScript Gets or sets the on node selected script. Usage: OnNodeSelectedScript="nodeSelectHandler(elem);" function nodeSelectHandler(elem){ var val = "selected node:" + elem.parentNode.getAttribute("treeNodeValue"); alert( val ); }
Public property RelatedTrees Gets or sets the related trees. End user and drag drop the nodes from current tree to the related trees.
Public property RootNode Gets or sets the root node.
Public property RootNodeText Gets or sets the root node text.
Public property RootNodeValue Gets or sets the root node value.
Public property ScriptFile Obsolete. Gets or sets the script file. It's obsolete since automatically linking the script file feature is cancelled.
Public property Separator Gets or sets the separator. To set the separator for client html container, normally just keep it as default.
Public property StripAjaxResponseRegex Gets or sets the regular expression for ajax response striping.
Public property StyleFile Obsolete. Gets or sets the style file. It's obsolete since automatically linking the style file feature is cancelled.
Public property Theme Gets or sets the theme of the treeview.
Public property ThemeCssFile Gets the theme CSS file.
Public property TreeViewHelper Gets the tree view helper.
Public property Version Gets the version of the ASTreeView Control.
Public property VirtualNodePlaceHolderText Gets or sets the text displayed while loading nodes.
Top

See Also