protected void Page_Load(object sender, EventArgs e) { string[] folders = new string[] { "Personal (1)", "Work (5)", "Development (0)", "Design (2)", "Marketing (2)" }; if (!IsPostBack) { // Populate the Desktop TreeView control RadTreeView tree = (RadTreeView)FolderNavigationControl.FindControl("rtvFolders"); foreach (string folder in folders) { tree.Nodes.Add(new RadTreeNode(folder)); } // Populate the Mobile RadMenu control RadMenu menu = (RadMenu)MobileNavigation.FindControl("popupMenu"); foreach (string folder in folders) { menu.Items.Add(new RadMenuItem(folder)); } } // Hide Calendar for Mobile Devices if ((this.Master.FindControl("nav") as HiddenField).Value == "mobile") { RadCalendar1.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { string[] folders = new string[] { "All (14)", "Personal (0)", "Work (0)" }; // Populate the Desktop TreeView control RadTreeView tree = (RadTreeView)FolderNavigationControl.FindControl("rtvFolders"); foreach (string folder in folders) { tree.Nodes.Add(new RadTreeNode(folder)); } // Populate the Mobile RadMenu control RadMenu menu = (RadMenu)MobileNavigation.FindControl("popupMenu"); foreach (string folder in folders) { menu.Items.Add(new RadMenuItem(folder)); } }
protected void Page_Load(object sender, EventArgs e) { string[] folders = new string[] { "Inbox (5)", "Junk (0)", "Drafts (0)", "Deleted (0)", "NativeScript (3)", "Kendo UI (3)", "Sitefinity (7)" }; if (!IsPostBack) { // Populate the Desktop TreeView control RadTreeView tree = (RadTreeView)FolderNavigationControl.FindControl("rtvFolders"); foreach (string folder in folders) { tree.Nodes.Add(new RadTreeNode(folder)); } // Populate the Mobile RadMenu control RadMenu menu = (RadMenu)MobileNavigation.FindControl("popupMenu"); foreach (string folder in folders) { menu.Items.Add(new RadMenuItem(folder)); } } }