XML Data Source?

4 posts, 1 answers
  1. jaymdouglas
    jaymdouglas avatar
    3 posts
    Member since:
    Jul 2007

    Posted 10 May 2008 Link to this post

    I am setting up a ToolBar with an XML datasource.

    The XML is very basic, and I've configured the data source but now the toobar itself in both design view and when I run it says:

    System.Web.Ui.WebControls.XmlDataSourceNodeDescriptor

    I've done some searching but cannot figure this out.

  2. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 10 May 2008 Link to this post

    Hi jaymdouglas,

    The problem can be related to the XML file structure. Can you open a formal support ticket and send us the XML file to check?

    Regards,
    Erjan Gavalji
    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. jaymdouglas
    jaymdouglas avatar
    3 posts
    Member since:
    Jul 2007

    Posted 10 May 2008 Link to this post

    This is my XML structure, like I said its very basic.  I am just doing a quick example for a demonstration (on your product) next week.  I use VB2008 as well.

    <?

    xml version="1.0" encoding="utf-16"?>

    <

    ToolBar>
        <
    Button IsSeparator="True" />
        <
    Button Text="Menu1" />
        <
    Button Text="Menu2" />
        <
    Button IsSeparator="True" />
        <
    Button Text="Menu3" />
        <
    Button Text="Menu4" />
        <
    Button IsSeparator="True" />
    </
    ToolBar>

  5. Answer
    Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 10 May 2008 Link to this post

    Hi jaymdouglas,

    I'm sorry I didn't guess the problem at the first glance. You need to set a value to the DataTextField property of the RadToolBar. To avoid the errors, you should define a value to the Text field of the XML nodes, which are set as separators. In addition (as the databinding does not handle this, you should add an event handler to the ButtonDataBound event to set them as separators).

    Unfortunately the official release had a small glitch - the ButtonDataBound event did not get triggered. It is fixed in the latest internal build. Please, find attached the contents of its bin folder along with a small page demonstrating the approach. The official service pack is scheduled for the end of the next week.

    FYI, the XML file you sent can be used with the LoadFile method of the RadToolBar.

    Kind regards,
    Erjan Gavalji
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top