Rank: Newbie Groups: Member
Joined: 6/1/2007 Posts: 1
|
With the Slide Menu, is it possible to nest multiple controls?
I'd like to be able to have a slide menu that has a top section containing a single treeview, a middle section containing 3 to 4 input controls (textbox, datepicker, button), and a final section containing multiple textboxes, dropdownlists, checkboxes, and buttons.
Feasible?
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
yes. It is possible. You will need to use the CustomItem control. CustomItem is a container control that works pretty much like the standard Panel control --- you can drop other controls onto it.
You will need to:
1. Drop a slide menu on the form, create the slide menu as usual and then create a "place holder" item for your "top section" where you intend to put other controls. The text of the place holder item is not important;
2. Drop a CustomItem control on the form, put your input, textbox, datepicker, button, etc, inside that CustomItem;
3. Set the place holder menu item's CustomItemID to the ID of the CustomItem control you added in step 2;
Run the code and you will see the place holder item is being replaced with the content of the CustomItem control.
Please feel free to let us know if you have any more questions.
|