|
NodeExpandableControlContainer node control
Saturday, 12 September 2009
The NodeExpandableControlContainer node control is identical to the NodeControlContainer node control, but displays a bound control in an expandable area. To bind a node control to a container, use the ContainerFieldName property as stated below. Example: // create node control. NodeExpandableControlContainer nc = new NodeExpandableControlContainer(); nc.ContainerFieldName = "Container"; nc.AttachTo(tree); // add node. NodeWithControl node = new NodeWithControl("Node title"); // create and attach the button control. Button btn = new Button(); btn.Text = "Test"; node.Container = new ControlContainer(btn); node.AttachTo(tree); tree.Options.Node.AutoNodeHeight = true; // optional option. tree.Options.Selection.HoverStyle = eHoverStyle.SoftSelect; |
|