This is a migrated thread and some comments may be shown as answers.

Grid - Detail view switch

3 Answers 85 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 2
James asked on 23 Sep 2010, 02:36 PM
Hi,

Can we implement such a window:

1. The window has menu and toolbar;
2. The client area of the window is a grid.
3. There is a 'toggle view' button in the toolbar, which toggles the grid view between Grid (List) view and Detail (single record) view. That is to say, users can select any row of the grid, and toggle to Detail (single record) view; and vice versa.

Any suggestions will be appreciated much!

Regards,
James

3 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 28 Sep 2010, 02:54 PM
Hi James,

Yes, this is an easy task when using RadControls for WinForms. Please follow these steps:

1.
Crate a new project and add a blank form.
2. Drop RadMenu and RadToolStrip on the form.
3. Drop RadPageView and add two pages.
4. Drop RadGridView in the first page and set its Dock property to Fill mode.
5. Drop the controls that will represent the details view in the second page.
6. Insert a button in RadToolStip and double click on it to create an event handler.
7. Insert the following code in the event handler:
if (radPageView1.SelectedPage == radPageViewPage1)
{
    radPageView1.SelectedPage = radPageViewPage2;
}
else
{
    radPageView1.SelectedPage = radPageViewPage1;
}
8. Select the RadPageView control and click on the smart tag in the right upper corner.
9. Choose the Edit UI Elements option.
10. Select the StripViewItemContainer element from Control element structure in the left pane.
11. Select the Visibility property from the right pane and set it to Collapsed.
12. Click the Close button and run the application.

I hope this helps. If you have any further questions, please write back.

Regards, Jack
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
James
Top achievements
Rank 2
answered on 30 Sep 2010, 09:30 AM
Hi Jack,

Thank you for your step-by-step instructions with code example!

I've planned to purchase a Premium Collection license. Hope your support will be as good as your recent replies!

Regards,
James
0
Jack
Telerik team
answered on 05 Oct 2010, 04:09 PM
Hello James,

I am glad to hear that. If you have any further questions or you need assistance with our controls, do not hesitate to contact us.

Best wishes, Jack
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
James
Top achievements
Rank 2
Answers by
Jack
Telerik team
James
Top achievements
Rank 2
Share this question
or