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

XML Data Source?

3 Answers 62 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
jaymdouglas
Top achievements
Rank 1
jaymdouglas asked on 10 May 2008, 12:04 PM
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.

3 Answers, 1 is accepted

Sort by
0
Erjan Gavalji
Telerik team
answered on 10 May 2008, 12:48 PM
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
0
jaymdouglas
Top achievements
Rank 1
answered on 10 May 2008, 01:28 PM
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>

0
Accepted
Erjan Gavalji
Telerik team
answered on 10 May 2008, 02:52 PM
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
Tags
ToolBar
Asked by
jaymdouglas
Top achievements
Rank 1
Answers by
Erjan Gavalji
Telerik team
jaymdouglas
Top achievements
Rank 1
Share this question
or