Skip to content

onebalaban/how-to-reorder-aspxnavbar-groups-e2057

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to reorder ASPxNavBar groups

This sample illustrates how to change the order of groups at runtime by means of custom buttons integrated in the GroupHeaderTemplate.

Description

1. The ASPxNavBar.GroupHeaderTemplate contains two buttons (to move the group up and down). Each button initiates a postback and changes the group position by modifying its Index property.

2. To avoid reloading the entire page, we've put the ASPxNavBar in an MS AJAX UpdatePanel.

3. One group contains an ItemTemplate defined. When reordering groups, you should be picky of correctly handling this template. In particular, it's necessary to set it at runtime, for the reasons described in report ASPxNavBar - Group loses its ItemTempate when changing its Index.


About

.NET, ASP.NET Web Forms, Navigation, Layout & Multi-Purpose Controls

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published