web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Creator Kit nav contro...
Power Apps
Unanswered

Creator Kit nav control - Set menu expansion programmatically

(0) ShareShare
ReportReport
Posted on by 90

Hi, 

 

I follow the documentation here and build a modern nav control using Creator Kit: https://learn.microsoft.com/en-us/power-platform/guidance/creator-kit/nav.

 

Since I have many screens in my app and all of them need this navigation control, so it made sense to me to build a reusable component, cmpAppNav and insert this component into all of my screens. cmpAppNav has only one control, the Fluent Nav. 

chent7_5-1702802054893.png

 

I inserted navAppMenu on all of my screens. 

 

My quesiton is...Is there a way to programmatically collapse/expand the sub menu? In other words, is there a way to always keep Category 1 and Category 2 sub menu closed? ItemExpanded property is not the answer since the page only respects the value here on initial load. I want the menu to be closed on every single click event of Page 20/21/30/31. So after the navigation gets triggered (configured in the onSelect), and the user is redirect to the new page, the nav sub menus remain collapsed when the user opens the navigation again (by clicking the hambuger icon). 

chent7_4-1702801944194.png

Here is my nav items: 

 

Table(
 {
 ItemKey: "1",
 ItemDisplayName: "Home",
 ItemIconName: "Home"
 },
 {
 ItemKey: "2",
 ItemDisplayName: "Category 1"
 },
 {
 ItemKey: "3",
 ItemDisplayName: " Category 2"
 },
 {
 ItemKey: "20",
 ItemDisplayName: "Page 20",
 ItemParentKey: "2",
 ItemIconName: "Assign"
 },
 {
 ItemKey: "21",
 ItemDisplayName: "Page 21",
 ItemParentKey: "2",
 ItemIconName: "Manufacturing"
 },
 {
 ItemKey: "30",
 ItemDisplayName: "Page 30",
 ItemParentKey: "3",
 ItemIconName: "BIDashboard"
 },
 {
 ItemKey: "31",
 ItemDisplayName: " Page 31",
 ItemParentKey: "3",
 ItemIconName: "Repair"
 }
)

 

 

I appreciate your time reading this post! 

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard