| Query | Response | |
| I'm going to create a WinForms desktop application where I want to use a tree view on the left and some kind of panel on the right. Every node in the tree should open a specific panel with input text, select, radio and checkbox controls and a submit button. Which SyncFusion controls can I use best? I was thinking about using the TreeViewAdv for the tree view. | Yes, we confirm TreeViewAdv Control that will achieve this reported behavior | |
| But what is the best control to use for the panels? The panels need to act like tab panels and only one panel is visible (on top) at a time. And what container should I use? | We have checked this reported behavior, We have achieved your reported requirement using the CardLayout Control. Please find the code example. Code Example [C#]
Screenshot We have also prepared the sample for your reference. It can be downloaded from the below link, Please refer to the below documentation will guide in requested use case Kindly check the above solution and let us know if it is helpful. |
Thanks Mallika,
I'm glad I asked because I would never think of the card layout.
I looked at your example and it works great. I do have one question.
I'm not sure how to add a new card. Is this done in code or can I also do this in the design view?
I've looked for an option like 'Add Card' as it is done with the tab control, but can't find it?
In general I would like to know how to use the card layout on a new form. How to add cards and how to add controls to the card.
| Query | Comments | |
| I'm glad I asked because I would never think of the card layout. I looked at your example and it works great. | We are glad to hear that we have helped you in this. | |
| I'm not sure how to add a new card. Is this done in code or can I also do this in the design view? I've looked for an option like 'Add Card' as it is done with the tab control, but can't find it? In general I would like to know how to use the card layout on a new form. How to add cards and how to add controls to the card. | Yes, This below steps will guide in “How to configure CardView control?” 1) How to configure Card View in Design Mode? Step 1: Create the New Form.Please refer the below Screenshot. Screenshot Step 2: Drag and Drop the CardLayout Control. Please drag and drop the CardLayout Control on form. Step 3: Add Controls in Form Drag and drop the required controls in Form. If Form contains CardLayout Manager, dragged control will be directly added as Card and as Selected Card. Please refer the below Screenshot 2) How to add Programmatically? Please make use of the below Code snippet to load controls programmatically. Code snippet [C#]:
We have also prepared the sample Your Reference. It can be downloaded from the below link. |
Thanks for the overview.
It is now much more clear to me. I will start with the implementation in my project soon.