I am currently looking for a control that allows me to show only few informations when the control is fold. And when we click on the control, the control is unfold and all the information of the control are showed. I have checked if I could use ListView but I did not see a match and the TreeView does not fit my will because it's not a child node but the same node showed in a different way.
Can you help me find a control that could fit my needs ?
Thanks in advance.
You could look into the Expander control. You can modify the control template to customize how it looks and behaves.
Related
In the form pictured below, the entire content of the right side changes when an item is selected on the left side. Which control can I use to accomplish this effect? I’ve tried a ListBox if anyone can put the code or the design tools .
Picture of form:
The left side is most likely a Win32 TreeView control. The pane on the right is almost certainly a ListView control.
There's really nothing that will automatically swap the views out when you click on the tree control. You'll have to write you own code to toggle the main pane's view based on the item selected in the tree.
I am trying to modify a custom content control I've created. Specifically I want to add a minibar containing one or two buttons to a quick and short modification of the text included in my content control. The image below shows the outcome I want to have - the problem is that these buttons are only shown in built-in table content control and I can't find any useful information on the web about how to create something like that myself... Could you help me?
Unfortunately, the commands shown next to the content control title are not customizable; it's definitely something we've thought about, but this isn't possible today.
You could use the ContentControlOnEnter and ContentControlOnExit events to show buttons on the context menu or the ribbon; depending on your scenario, that might work?
I am re-designing some GUI items and want to implement something like the following:
As you change options in the TreeView on the left, the controls on the right change according to the option selected.
My question is, what is the best way to implement this? I was thinking of setting the visible property to true / false for each control to it's respective TreeView option selection; however, designing this on the VS GUI editor would be pretty painful as there would be hundreds of controls all over the place and on top of each other.
User controls. Create the blocks you have outlined in red as user controls and add/remove as you select/change node in the treeview.
If you want a "buffer" effect to avoid flicker when removing an existing control, then use a tab control with two pages (without showing the tabs.) Start with showing TAB1 then when selecting a node in the treeview add the correct control to TAB2 and then make TAB2 the active page. And then remove any existing controls from TAB1. And then the other way around when the next node is selected. etc etc.
I am using the standard asp.net treeview control to display a menu structure that is getting bound from a database. The data structure has a parentID column to represent the node relationship if one exists.
Anyway, that's not an issue, I am looking for a treeview control that would allow a user to rearrange the node by dragging them to a new position within the tree. Can anyone point me in the right direction as to any controls out there that can do this? The windows form control has the move node events. IS there something like this for web forms? Any pointers greatly appreciated.
You can have look at ExtJS TreePanel.
Drag and Drop ordering in a TreePanel
Why not try the JQuery TreeView plug-in?
http://plugins.jquery.com/project/treeview
Not sure if meets all of your non-functional requirements, but if you click on the "Try out a demonstration" link, you should be able to see if it meets your needs.
I´m trying to use the ASP.NET TreeView control to display informations like some sites do. For example:
http://www.codeproject.com/KB/webforms/ClientSideTreeView.aspx
The site of the link above have some code snippets that can be collapsed or expandend, showing a rectangle with the code snippets.
The first question is: Is this a TreeView control?
If positive how can I do that? Otherwise, what is this control?
Thanks
Yes, it is a TreeView control. (Like it says "TreeView control from Microsoft with C# and ASP.NET")
More information:
http://msdn.microsoft.com/en-us/library/ms529261.aspx
http://www.codeguru.com/csharp/.net/net_asp/controls/article.php/c12285