Hi,
Is it possible to use the same XML data source for both a RadMenu and a RadTreeView?
I am trying to convert an existing (non-Telerik) menu administration page over to use Telerik controls. The page displays the menu XML data as a tree view and allows the users to edit, add, and delete nodes. The XML content is in a database and is loaded using the LoadXML() method. Upon saving changes, the data is serialized back out using GetXML(), and the XML is written back to the database.
The reason I ask is because the XML formats for the two controls listed in the documentation are different:
RadMenu XML Format
RadTreeView XML Format
If it is not possible to load RadMenu XML data into a RadTreeView item directly, do you have any suggestions on how to achieve the same or similar effect?
Thanks,
Kevin
Is it possible to use the same XML data source for both a RadMenu and a RadTreeView?
I am trying to convert an existing (non-Telerik) menu administration page over to use Telerik controls. The page displays the menu XML data as a tree view and allows the users to edit, add, and delete nodes. The XML content is in a database and is loaded using the LoadXML() method. Upon saving changes, the data is serialized back out using GetXML(), and the XML is written back to the database.
The reason I ask is because the XML formats for the two controls listed in the documentation are different:
RadMenu XML Format
<
Menu
Skin
=
"Outlook"
>
<
Item
Text
=
"Parent"
LeftLogo
=
"Img\parent.gif"
>
<
Group
Width
=
"140"
Flow
=
"Vertical"
>
<
Item
Text
=
"Child 1"
/>
<
Item
IsSeparator
=
"True"
/>
<
Item
Text
=
"Child 2"
/>
</
Group
>
</
Item
>
</
Menu
>
RadTreeView XML Format
<
Tree
>
<
Node
Text
=
"North America"
Expanded
=
"True"
Value
=
"1"
>
<
Node
>
<
Node
>
</
Node
>
</
Node
>
</
Node
>
</
Tree
>
If it is not possible to load RadMenu XML data into a RadTreeView item directly, do you have any suggestions on how to achieve the same or similar effect?
Thanks,
Kevin