Mar 13, 2012, 1:58 AM
[CLOSED] Dropdown with Tree Panel not displaying default text (Razor view/2.0)
Using the code below:
fields.Add(Html.X().DropDownField()
.FieldLabel("Product/Service Type")
.Margins("0 0 0 0")
.LabelWidth(200)
.Width(400)
.Text("--- Please Select ---")
.Cls("form-label")
.Component(treePanel => treePanel.Add(Html.X().TreePanel()
.Height(300)
.Width(400)
.RootVisible(false)
.Root(root =>
{
//tree panel stuff
}));
The text "--- Please Select ---" doesn't appear in the box on page load. I would like this present to encourage the user to click and expand the tree...
Last edited by Daniil; Mar 15, 2012 at 9:54 PM.
Reason: Please use [CODE] tags, [CLOSED]