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

visible by PageViewItemType.GroupHeaderItem

1 Answer 56 Views
PageView
This is a migrated thread and some comments may be shown as answers.
Laurence
Top achievements
Rank 1
Laurence asked on 08 Mar 2018, 10:11 PM

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.

 

 

 

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 12 Mar 2018, 11:45 AM
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.
Tags
PageView
Asked by
Laurence
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or