I have
<telerik:RadToolbar ID="mainToolbar" runat="server" Skin="Green">
</telerik:RadToolbar>
with C#
if (!Page.IsPostBack)
{
mainToolbar.LoadContentFile("xml/MainToolbar.xml");
}
and XML
<?xml version="1.0" encoding="utf-8" ?>
<radToolBar>
<Button Text="Save" />
<Button Text="Load" />
</radToolBar>
The toolbar displays the same way that it displays when you don't give it any items. "Save" and "Load" are nowhere to be seen.
<telerik:RadToolbar ID="mainToolbar" runat="server" Skin="Green">
</telerik:RadToolbar>
with C#
if (!Page.IsPostBack)
{
mainToolbar.LoadContentFile("xml/MainToolbar.xml");
}
and XML
<?xml version="1.0" encoding="utf-8" ?>
<radToolBar>
<Button Text="Save" />
<Button Text="Load" />
</radToolBar>
The toolbar displays the same way that it displays when you don't give it any items. "Save" and "Load" are nowhere to be seen.
5 Answers, 1 is accepted
0
Hi Ed,
The xml file has to follow specific convention. Please, try the following:
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
The xml file has to follow specific convention. Please, try the following:
<?xml version="1.0" encoding="utf-8" ?> |
<ToolBar> |
<Button Text="Save" /> |
<Button Text="Load" /> |
</ToolBar> |
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Ed Bassin
Top achievements
Rank 1
answered on 05 Jun 2008, 01:26 PM
I made the change and it still had the same result.
I even tried the exact XML from the help page:
http://www.telerik.com/demos/aspnet/prometheus/ToolBar/Examples/PopulatingWithData/PopulatingFromXml/DefaultCS.aspx
I even tried the exact XML from the help page:
http://www.telerik.com/demos/aspnet/prometheus/ToolBar/Examples/PopulatingWithData/PopulatingFromXml/DefaultCS.aspx
0
Hi Ed,
We tried to reproduce the reported issue on our side, but to no avail. Please find attached a sample web application that shows the proper work as of the control.
If the problem persists, I think it will be best if you can open a support ticket and send us a simple running project (incl. CSS, images, skins, DB backup if needed and so on) demonstrating the problem (and step-by-step instructions on doing so). In that way we can reproduce and pinpoint the problems you're facing on our side, understand the logic of your application and provide a solution.
Regards,
Paul
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
We tried to reproduce the reported issue on our side, but to no avail. Please find attached a sample web application that shows the proper work as of the control.
If the problem persists, I think it will be best if you can open a support ticket and send us a simple running project (incl. CSS, images, skins, DB backup if needed and so on) demonstrating the problem (and step-by-step instructions on doing so). In that way we can reproduce and pinpoint the problems you're facing on our side, understand the logic of your application and provide a solution.
Regards,
Paul
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Ed Bassin
Top achievements
Rank 1
answered on 05 Jun 2008, 02:26 PM
Hmmm, my old assembly was:
<%@ Register Assembly="RadToolbar.Net2, Version=1.5.2.0, Culture=neutral, PublicKeyToken=58e92726eb339b98"
Namespace="Telerik.WebControls" TagPrefix="telerik" %>
With the one that you gave me:
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
it works. Which assembly should I be using? and the one you gave me works with the "hay" skin but
Telerik.Web.UI.RadToolBar with ID='mainToolbar' was unable to find embedded skin with name 'Glassy'
even though I have the Glassy skin in the RadControls/Toolbar/Skins/ directory.
<%@ Register Assembly="RadToolbar.Net2, Version=1.5.2.0, Culture=neutral, PublicKeyToken=58e92726eb339b98"
Namespace="Telerik.WebControls" TagPrefix="telerik" %>
With the one that you gave me:
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
it works. Which assembly should I be using? and the one you gave me works with the "hay" skin but
Telerik.Web.UI.RadToolBar with ID='mainToolbar' was unable to find embedded skin with name 'Glassy'
even though I have the Glassy skin in the RadControls/Toolbar/Skins/ directory.
0
Ed Bassin
Top achievements
Rank 1
answered on 05 Jun 2008, 02:59 PM
I see...that was a trial dll you gave me. For some reason, it works with the trial but not with my DLLs. Maybe I don't have the latest version or something