All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
New to Telerik UI for ASP.NET AJAX? Download free 30-day trial
You can seamlessly populate RadRibbonBar from XML.
RadRibbonBar1.LoadContentFile("~/RibbonBar.xml");
RadRibbonBar1.LoadXml("<RibbonBar><Tab Text="Home" ><Group Text="Clipboard" EnableLauncher="true"> ... </RibbonBar>");
You can also retrieve the current RadRibbonBar structure in XML format:
string xml = RadRibbonBar1.GetXml();
Dim xml as String = RadRibbonBar1.GetXml()
<%@ Page AutoEventWireup="true" CodeFile="DefaultCS.aspx.cs" Inherits="RibbonBar.Examples.PopulatingFromXml.DefaultCS"Language="c#" %> <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> <!DOCTYPE html> <html xmlns='http://www.w3.org/1999/xhtml'> <head runat="server"> <title>Telerik ASP.NET Example</title> <link rel="stylesheet" type="text/css" href="styles.css" /> </head> <body> <form id="form1" runat="server"> <telerik:RadScriptManager runat="server" ID="RadScriptManager1" /> <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" /> <div class="demo-container"> <telerik:RadRibbonBar RenderMode="Lightweight" ID="RadRibbonBar1" runat="server"> </telerik:RadRibbonBar> </div> </form> </body> </html>