GetXml and Node Template not working

1 posts, 0 answers
  1. Tonyz289
    Tonyz289  avatar
    50 posts
    Member since:
    Jun 2011

    Posted 23 Nov 2012 Link to this post

    I think I know the answer already but I have a TreeView with a Node Template in it, can I save it somehow with GetXML? Failing that can anyone suggest a workaround.

    Definition of RadTreeView
    <telerik:RadTreeView ID="RadTreeView1" runat="server" CheckBoxes="True" MultipleSelect="True"
         EnableViewState="true" ShowLineImages="False" EnableEmbeddedSkins="False" Skin="tree_2"
         OnNodeClick="RadTreeView1_NodeClick" OnNodeDataBound="RadTreeView1_NodeDataBound"
         OnClientNodeCollapsed="OnClientNodeCollapsed" OnClientNodeExpanded="OnClientNodeExpanded">
         <NodeTemplate>
             <small>
                 <asp:Label ID="lblnodeText" Text='<%#Eval("Title") %>' runat="server" /><asp:Label
                     ID="lblCatId" Text='<%#Eval("Id") %>' runat="server" Visible="false"></asp:Label><asp:Label
                         ID="lblisCustomer" Text='<%#Eval("isCustomer") %>' runat="server" Visible="false"></asp:Label><asp:Label
                             ID="Description" runat="server" Text='<%#Eval("description") %>' Visible="false" /><asp:HiddenField
                                 ID="DescriptionVisible" runat="server" Value='<%#Eval("descriptionVisible") %>' />
             </small><small><a href="javascript:Popup_Window('category_detail','<%# Eval("id") %>')"
                 style="text-decoration: none;"><span style="color: #BBBBBB">e</span></a></small></NodeTemplate>
     </telerik:RadTreeView>

    XML File
    <?xml version="1.0" encoding="utf-16"?>
    <Tree ShowLineImages="False" CheckBoxes="True" MultipleSelect="True" OnClientNodeExpanded="OnClientNodeExpanded" OnClientNodeCollapsed="OnClientNodeCollapsed" DataFieldID="Id" DataFieldParentID="IdParent" DataTextField="Title" DataValueField="Id" Skin="tree_2" EnableEmbeddedSkins="False">
      <Node Text="Product Library" Value="1095" Expanded="True" Checkable="False" ExpandMode="ServerSide">
        <Node Text="Spirits" Value="2270" Expanded="True" ExpandMode="ServerSide">
          <Node Text="Boubon Wiskey" Value="2357" ExpandMode="ServerSide" />
          <Node Text="Tequila" Value="2368" Expanded="True" ExpandMode="ServerSide">
            <Node Text="Unknown Tequila" Value="2371" ExpandMode="ServerSide" />
            <Node Text="Anejo" Value="2372" ExpandMode="ServerSide" />
            <Node Text="Blanco" Value="2373" ExpandMode="ServerSide" />
            <Node Text="Reposado" Value="2374" ExpandMode="ServerSide" />
          </Node>
          <Node Text="Scotch" Value="2369" ExpandMode="ServerSide" />
          <Node Text="Vodka" Value="2370" ExpandMode="ServerSide" />
        </Node>
        <Node Text="Wines" Value="1564" Expanded="True" ExpandMode="ServerSide" />
        <Node Text="Beer" Value="2251" ExpandMode="ServerSide" />
        <Node Text="Miscellaneous" Value="2252" ExpandMode="ServerSide" />
        <Node Text="By Country" Value="2287" ExpandMode="ServerSide" />
        <Node Text="By Spirit Type" Value="2288" ExpandMode="ServerSide" />
        <Node Text="By Grape Type" Value="2289" ExpandMode="ServerSide" />
        <Node Text="By Region" Value="2295" ExpandMode="ServerSide" />
      </Node>
      <Node Text="Retailers" Value="2356" Expanded="True" Checkable="False" ExpandMode="ServerSide">
        <Node Text="Gates Circle" Value="2375" Expanded="True" ExpandMode="ServerSide">
          <Node Text="Spirits" Value="2376" ExpandMode="ServerSide">
            <Node Text="Vodka" Value="2382" ExpandMode="ServerSide" />
            <Node Text="Tequila" Value="2383" ExpandMode="ServerSide">
              <Node Text="Blanco" Value="2384" ExpandMode="ServerSide" />
            </Node>
            <Node Text="Scotch" Value="2385" ExpandMode="ServerSide" />
          </Node>
          <Node Text="Wine" Value="2377" ExpandMode="ServerSide" />
          <Node Text="Beer" Value="2378" ExpandMode="ServerSide" />
          <Node Text="Miscellaneous" Value="2379" ExpandMode="ServerSide" />
        </Node>
        <Node Text="Emilio's Beverage Warehouse" Value="2386" ExpandMode="ServerSide">
          <Node Text="Spirits" Value="2387" ExpandMode="ServerSide" />
          <Node Text="Wine" Value="2388" ExpandMode="ServerSide" />
          <Node Text="Beer" Value="2389" ExpandMode="ServerSide" />
          <Node Text="Miscellaneous" Value="2390" ExpandMode="ServerSide" />
        </Node>
        <Node Text="Pickard Liquor" Value="2396" ExpandMode="ServerSide">
          <Node Text="Spirits" Value="2397" ExpandMode="ServerSide" />
          <Node Text="Wine" Value="2398" ExpandMode="ServerSide" />
          <Node Text="Beer" Value="2399" ExpandMode="ServerSide" />
          <Node Text="Miscellaneous" Value="2400" ExpandMode="ServerSide" />
        </Node>
      </Node>
    </Tree>
Back to Top