COMOBOTREE control instructions

xiaoxiao2021-03-06  14

Introduction:

The Combotree control is a WebControl developed with C #, which successfully solved the problem that the tree structure cannot be displayed in the traditional DropDownList.

Sample code:

Combotree1.treeWidth = 200; // Combotree width, intcombotree1.datasource = DT; // Data Source, DataTableCombotree1.DataTextColumn = DT.COLUMNS ["name"]. TOSTRING (); // Node name in the data source Stringcombotree1.DataValueColumn = DT.COLUMNS ["ID"]. ToString (); // Node ID In the data source, stringcombotree1.dataParentColumn = dt.columns ["parentID"]. Tostring (); // node correspondence Parent Node ID In the data source, stringcombotree1.defaultParentValue = "0"; // Default parent node ID, STRINGCOMBOTREE1.DISPLAYNAME = "test"; // tree structure display name, string combotree1.selectValue = "name14"; // Default node name, stringcombotree1.selectid = "14";

Precautions:

1. Need Microsoft's TreeView control support; 2. Do not use the DropDownList control under this control;

If you need Combotree control, please contact this studio. Contact email: brisun.sj@163.com

转载请注明原文地址:https://www.9cbs.com/read-49284.html

New Post(0)