Header25
The Header25 control is responsible for rendering the top navigation bar of the application.
It provides essential UI elements such as help menus, notifications, search functionality, user profile options, and quick-access menu links. With flexible methods to add dynamic content, Header25 helps maintain a clean, user-friendly, and customizable header section across all pages.
-
AddHelp(HelpInfo):
- Adds Online Help, Release Notes, Feedback, and custom help links.
- Supports popup windows, new tab links, icons, and images.
- Displays options inside a dropdown under a help icon.
-
AddNotification(NotificationInfo):
- Displays notification icon with badge count.
- Supports linking to a page or showing dropdown content.
- Automatically hides badge when count is zero.
-
AddDropDown(content):
- Adds custom HTML content in the header.
- Useful for adding filters, toggles, or labels.
-
AddLabel(Name, ToolTip):
- Adds a static label text to the header.
- Commonly used for displaying company name, page group, or category.
-
AddSwitchButton(Url, Icon, Tooltip):
- Adds a switch-user or quick-action button.
- Supports custom icons and tooltips.
-
AddSearch(url):
- Enables search box in the header.
- Search result will redirect to the given URL.
-
AddMenuSearch(List
- Adds menu-based quick search options.
- Useful for large applications with many pages.
-
AddTopMenu(List
- Adds horizontal navigation links at the top bar.
- Displayed on larger screens only (responsive behavior).
-
AddUser(UserInfo):
- Shows the logged-in user profile with image and name.
- Displays profile, change password,
var header = new Header25();
var links = new List();
var link = new Link25();
string Path = "/Form/ManageForm";
var properties = new Link25.Properties()
{
Name = "Manage User",
NewTab = true,
TargetUrl = Path,
Icon = Icon25.IconCollection.FillUser
};
link.AddUrl(properties);
links.Add(link);
Header25.UserInfo userInfo = new Header25.UserInfo()
{
Name = "Test",
Description = "Test",
SignOutUrl = "/Home/Dashboard",
OtherLinks = links
};
header.AddUser(userInfo);