Paul Ashton
Top achievements
Rank 1
Paul Ashton
asked on 10 May 2010, 09:35 AM
I need to dynamically load the contents of an xml file.
The xml will be free format and so can change.
I s it possible to load this into a TreeListView?
The xml will be free format and so can change.
I s it possible to load this into a TreeListView?
3 Answers, 1 is accepted
0
Hello Paul Ashton,
The TreeList (and Silverlight controls in general) will not bind as easily to XML or dynamic (as in DLR) objects.
You may be able to use ValueConverters in the DataBindings in the CellTemplates of the TreeList that will extract the value from the XML in a way you expect.
Can you describe your scenario in a little more detail? Then possibly we can think of a more specific suggestion that will work for you.
Greetings,
Miroslav
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
The TreeList (and Silverlight controls in general) will not bind as easily to XML or dynamic (as in DLR) objects.
You may be able to use ValueConverters in the DataBindings in the CellTemplates of the TreeList that will extract the value from the XML in a way you expect.
Can you describe your scenario in a little more detail? Then possibly we can think of a more specific suggestion that will work for you.
Greetings,
Miroslav
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Paul Ashton
Top achievements
Rank 1
answered on 11 May 2010, 10:50 PM
The issue is that i dont know the structure of the xml, but i would like to be able to display it's structure
0
Hi Paul Ashton,
The Xml APIs available in Silverlight are not directly bindable.
You need to create a bindable wrapper around them. The XDocument can be used as a basis.
You can have a look at the attached project, hopefully it will help you get started.
All the best,
Miroslav
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
The Xml APIs available in Silverlight are not directly bindable.
You need to create a bindable wrapper around them. The XDocument can be used as a basis.
You can have a look at the attached project, hopefully it will help you get started.
All the best,
Miroslav
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.