collapse all the pages except default page in RadNavigationView

1 Answer 143 Views
NavigationView
Neelamegan
Top achievements
Rank 1
Neelamegan asked on 24 May 2023, 07:05 PM
While loading the form by default collapse all the page(pages and sub pages) and expand only default page. 

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 29 May 2023, 09:14 AM

Hi, Neelamegan,

The Following code snippet demonstrates how to collapse the pages:

            foreach (RadPageViewNavigationViewItem item in this.radNavigationView1.NavigationViewElement.Items)
            {
                item.IsExpanded = false;
            }

If you want to leave at least one RadPageViewNavigationViewItem expanded, do not set its IsExpanded property to false.

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
NavigationView
Asked by
Neelamegan
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or