visible by PageViewItemType.GroupHeaderItem

2 posts, 0 answers
  1. Laurence
    Laurence avatar
    9 posts
    Member since:
    May 2008

    Posted 08 Mar 2018 Link to this post

    Hi,

    I have RadPageView with a lot of items, which are organized by categories.

     

    I'd like that when I click on a category title (PageViewItemType.GroupHeaderItem?) I display the pages which are related to this GroupHeaderItem.

     

    Eg.

    Organisation (GroupHeaderItem)

     - Page1

     - Page 2

     

    Administration (GroupHeaderItem)

     - Admin 1

     - Admin 2

     

    I don't see how to accomplish that with RadPageView. 

    I chose RadPageView over RadTreeView because the management of the forms that are shown are managed perfectly with RadPageView.

     

    Thank you for your help.

     

     

     

  2. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3217 posts

    Posted 12 Mar 2018 Link to this post

    Hello, Laurence,

    Thank you for writing.  
     
    Your question has already been answered in the other thread you have opened on the same topic. However, I am posting the reply here as well in order the community to benefit from it. 

    RadPageView offers PageViewMode.Backstage which allows you grouping pages as below:



    You can handle the MouseDown event and detect whether you click a RadPageViewStripGroupItem. Then, you can perform the desired action, select a specific page etc. 
    public RadForm1()
    {
        InitializeComponent();
            
        this.radPageView1.MouseDown+=radPageView1_MouseDown;
    }
       
    private void radPageView1_MouseDown(object sender, MouseEventArgs e)
    {
        RadPageViewStripGroupItem el = this.radPageView1.ElementTree.GetElementAtPoint(e.Location) as RadPageViewStripGroupItem;
        if (el!=null)
        {
            //TODO
        }
    }

    I hope this information helps. Should you have further questions I would be glad to help. 
     
     Regards,
    Dess
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top