Grid - Detail view switch

4 posts, 0 answers
  1. James
    James avatar
    22 posts
    Member since:
    Sep 2010

    Posted 23 Sep 2010 Link to this post

    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
  2. Jack
    Admin
    Jack avatar
    2333 posts

    Posted 28 Sep 2010 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. James
    James avatar
    22 posts
    Member since:
    Sep 2010

    Posted 30 Sep 2010 Link to this post

    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
  5. Jack
    Admin
    Jack avatar
    2333 posts

    Posted 05 Oct 2010 Link to this post

    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
Back to Top