Toolbar not working from simple XML data

6 posts, 0 answers
  1. Ed Bassin
    Ed  Bassin avatar
    33 posts
    Member since:
    Apr 2006

    Posted 03 Jun 2008 Link to this post

    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.
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 04 Jun 2008 Link to this post

    Hi Ed,

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ed Bassin
    Ed  Bassin avatar
    33 posts
    Member since:
    Apr 2006

    Posted 05 Jun 2008 Link to this post

    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
  5. Paul
    Admin
    Paul avatar
    4281 posts

    Posted 05 Jun 2008 Link to this post

    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
  6. Ed Bassin
    Ed  Bassin avatar
    33 posts
    Member since:
    Apr 2006

    Posted 05 Jun 2008 Link to this post

    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.
  7. Ed Bassin
    Ed  Bassin avatar
    33 posts
    Member since:
    Apr 2006

    Posted 05 Jun 2008 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017