Last post Dec 01, 2008 04:24 PM by redDevil7
Dec 01, 2008 11:37 AM|redDevil7|LINK
I'm new to ASP.net and I'm trying to create a site with expandable buttons. I don't know what the best way to set this up is.
I’m not sure if what I'm looking for is a menu or an expandable button. My goal is to have numerous expandable menus/buttons such as "Project Information" and "Business Requirements". When the user expands either of the two, fields will show up(Project
Name, Organization, etc.). Any help would be appreciated. Thank you.
Dec 01, 2008 12:16 PM|Curt_C|LINK
drop the Menu control on to your page... done...
It natively supports what you want. Just add the nodes you want.
Dec 01, 2008 01:30 PM|redDevil7|LINK
Thanks for your response but I'm still confused about the menu control. This is what I'm trying to do:
The first item would be "Project Information" and would have the "+" button in front of it. When the user clicks on the "+", it will expand and show fields such as "Project Name", "Organization", "Project Status" and "Project Manager". The user would then
be able to enter text for all the fields.
The second item will be named "Business Requirements". It will have similar fields to the one above and behave the same way.
The main thing I don't understand being new to .net and Visual studio is how to set this up. With the menu control, can the nodes be the textboxes(Project Name, Organization..) and save them some place? I wasn't sure if I would have to create a form for
each item and then hide the fields. By clicking on the "+" button, they would then appear. Not sure if I confused you but any help would would be great. Thanks.
Dec 01, 2008 01:32 PM|Curt_C|LINK
Ok....then you dont want a Menu control, you want a Tree control......
Dec 01, 2008 02:42 PM|redDevil7|LINK
Yeah, tree control is what I'm looking for! Have another question though. I've added the Root node and a few child nodes. I don't see where I can add a textbox to the child nodes. I've looked in the properties but can't seem to find anything about adding
a textbox. Thanks for all your help.
Dec 01, 2008 02:56 PM|Curt_C|LINK
Why would you want a TextBox on the node?
Could you explain your usage of that more? Perhaps then I can help out....
Dec 01, 2008 03:19 PM|redDevil7|LINK
I'm going to have a page that will have the items "Project Info" and "Business Requirements". When the user expands the item "Project Information", I would like the user to be able to enter the Project Name, Organization, Project Manager, etc. That is
where the textboxes come in. This page will primarily used for submitting new projects. Basically project name, organization and the other fields are like a form that should have the ability to be expanded and hidden. Will the tree view work for this.
Let me know if this makes things a little more clear. Thanks.
Dec 01, 2008 03:50 PM|Curt_C|LINK
Oh....hmm.... that's probably not what I would do but I could I guess.... you would want the onClick to hide/show a panel on the page though where the Input boxes are...
But personally, I would either go with Panels with hide/show or I would go with a Wizard control.
Basically you want a step by step input all on one "page" but you want the sections to be collapsible.... does that summarize?
Dec 01, 2008 03:57 PM|redDevil7|LINK
Yes, that sounds about right. So you're suggesting creating a panel for each item w/ the textboxes that capture and save the information that can be collapsible using hide/show right?
Dec 01, 2008 04:05 PM|Curt_C|LINK
basically yes.... that's my suggestion.
You could still use a Tree, just have the node clicks do the Hide/Show.....
Dec 01, 2008 04:24 PM|redDevil7|LINK
Thanks for all your help. I will try to do it using the panels. I'll let you know if I have any other questions. Thanks.