I am working on an existing ASP.NET 2.0 web application built in VS2005. Our desktop OS is WinXP (IIS5) and the servers are Win2003 (IIS6). My current issue revolves around a new AJAX RadTreeView that is located within a couple of asp:Panel within a rad:PageView on a content page. Initially the control renders correctly, but after hiding a parent panel that it is contained within, and then making that panel visible again, the controls renders as an unordered list. There are no checkboxes, or style formatting.
In navigating back to the control by making the parent panel visible again, the tree view control does have its visibility set to false initially and once a specific dropdown selection has been selected the tree view is made visible and the nodes cleared and rebound. I’ve debugged and interrogated the tree view from the command window and the nodes are populated both before and after being made visible and not. In fact the improperly rendered view of the control indicates that it is getting the data.
Are there any ideas as to why this is happening? I have played around with the RadAjaxManager to see if different control selections modified the rendered results, but no.
Much thanks, Fred.
<rad:PageView ID="RightsView" runat="server" meta:resourcekey="RightsView">
<asp:Panel ID="ViewRoleRightsPanel" runat="Server" Visible="True">
…
</asp:Panel>
<asp:Panel ID="CreateEditRoleRightsPanel" runat="Server" Visible="False">
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="ddlRole">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="LocationLabelPanel" />
<telerik:AjaxUpdatedControl ControlID="ManagerialTypePanel" />
<telerik:AjaxUpdatedControl ControlID="TreeViewPanel" />
<telerik:AjaxUpdatedControl ControlID="LocationWidePanel" />
<telerik:AjaxUpdatedControl ControlID="LocationNarrowPanel" />
<telerik:AjaxUpdatedControl ControlID="NotificationPanel" />
<telerik:AjaxUpdatedControl ControlID="btnSaveRight" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="ddlManagerialType">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="TreeViewPanel" />
<telerik:AjaxUpdatedControl ControlID="btnSaveRight" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="RadLocationGrid1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadLocationGrid1" />
<telerik:AjaxUpdatedControl ControlID="btnSaveRight" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<div class="ContentSection">
<div class="ContentFirstColumn">
…
<div class="ContentLine">
<asp:Panel ID="TreeViewPanel" runat="server" Visible="True">
<div class="ContentFirstItem RightAligned">
<asp:label id="lblTreeViewRolesProduct" runat="server" Visible = "false" Text="**Product/Practice - Area of Practice/Sub-Practice:" CssClass="FormLabel" meta:resourcekey="lblTreeViewRolesProduct"></asp:label>
<asp:label id="lblTreeViewRolesLOB" runat="server" Visible = "false" Text="**LOB/Sector/Segment:" CssClass="FormLabel" meta:resourcekey="lblTreeViewRolesLOB"></asp:label>
</div>
<div class="ContentDoubleItem LeftAligned">
<telerik:RadTreeView ID="TreeViewRoles" Visible="true" runat="server" CheckBoxes="true" TriStateCheckBoxes="true" CheckChildNodes="true" Skin="Outlook" OnNodeCheck="TreeViewRoles_NodeCheck" Height="290px">
</telerik:RadTreeView>
<asp:Label ID="lblNote" runat="server"></asp:Label>
</div>
</asp:Panel>
</div>
…