This is a migrated thread and some comments may be shown as answers.

Ribbonbar Load Xml Error

1 Answer 16 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Yo
Top achievements
Rank 1
Yo asked on 04 Sep 2013, 08:57 AM
I got a error when i try to Load a Xml String to a RibbonBar.
Below that is my code.

RadRibbonBar1.LoadXml("<RibbonBar Skin=""Windows7"">    <Tab Text=""Home"">      <Group Text=""New"" EnableLauncher=""True"">" _
                   & "<Button ImageUrl=""Images/rButton/New.png"" Size=""Large"" />      </Group>      <Group Text=""Edit"" EnableLauncher=""True""> " _
                   & "<Button ImageUrl=""Images/rButton/Open.png"" Size=""Large"" />     <Button ImageUrl=""Images/rButton/Save.png"" Size=""Large"" /> " _
                   & "<Button ImageUrl=""Images/rButton/SaveAs.png"" Size=""Large"" />      </Group>      <Group Text=""Exit"" EnableLauncher=""True""> " _
                   & "<Button ImageUrl=""Images/rButton/Document.png"" Size=""Large"" />      </Group>    </Tab>  </RibbonBar>")

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 05 Sep 2013, 11:35 AM
Hi Yo,

Please have a look at the sample code I tried which works fine at my end.

ASPX:
<telerik:RadRibbonBar ID="RadRibbonBar1" runat="server">
</telerik:RadRibbonBar>

C#:
protected void Page_Init(object sender, System.EventArgs e)
{
    RadRibbonBar1.LoadXml("<RibbonBar><ApplicationMenu Text='File'><ApplicationMenuItem Text='New'/></ApplicationMenu><Tab Text='Home'><Group Text='Clipboard' EnableLauncher='true'><Button Size='Medium' Text='Cut'/></Group></Tab></RibbonBar>");
}

Thanks,
Shinu.
Tags
RibbonBar
Asked by
Yo
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Share this question
or