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

expandedItems grows after each ajax request

2 Answers 28 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 02 Oct 2008, 01:39 PM
I am using a RadPanel. I click on a button inside an UpdatePanel and steadily performance degrades. After some testing it would appear that the RadPanelBar is adding an additional value to the expandedItems value.

<INPUT id=ctl15_ctl07_ctl02_ctl03_ctl02_9cfe62be-f27b-4b57-8329-46294c5e2cfe_RadPanelBar1_ClientState type=hidden value='{"expandedItems":["0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"logEntries":[],"selectedItems":[]}' name=ctl15_ctl07_ctl02_ctl03_ctl02_9cfe62be-f27b-4b57-8329-46294c5e2cfe_RadPanelBar1_ClientState autocomplete="off"

The html above was captured after a dozen or so ajax requests. If I was to do one more ajax request another element -> "0" <- would be added to the expandedItems value.

Is this a bug? or is it something I can do to stop this behaviour. I have taken the code behind my RadPanelBar out for now. Here is the markup I have got:

<telerik:RadPanelBar ID="RadPanelBar1" runat="server" Skin="Outlook" Width="100%" Height="100%" ExpandMode="SingleExpandedItem">  
    <Items> 
        <telerik:RadPanelItem Value="Locations" Text="Locations" Expanded="true" PreventCollapse="true" 
            ImageUrl="Images/office-building.png" CssClass="mainPanel">  
            <Items> 
                <%-- Current Location --%> 
                <telerik:RadPanelItem Value="CurrentLocation" Text="Current Location" Expanded="true" CssClass="subPanel" > 
                    <ItemTemplate> 
                        <div class="currentLocationDiv" id="LocationAddress"></div> 
                    </ItemTemplate> 
                </telerik:RadPanelItem> 
                  
                <%-- Sub Locations Tree --%> 
                <telerik:RadPanelItem Value="SubLocations" Text="Sub Locations" Expanded="true" CssClass="subPanel">  
                    <ItemTemplate> 
                        <asp:PlaceHolder runat="server" id="addTreeHere" /> 
                    </ItemTemplate> 
                </telerik:RadPanelItem> 
            </Items> 
        </telerik:RadPanelItem> 
    </Items> 
</telerik:RadPanelBar> 
 


Any help on this would be appreciated.

Thanks,
Martin

2 Answers, 1 is accepted

Sort by
0
Accepted
Rosi
Telerik team
answered on 03 Oct 2008, 07:39 AM
Hi Martin,

There was a similar problem in older evrsion of Telerik.Web.UI. This problem is fixed in current official build 2008.2.1001. Could you please try this version and let us known how this goes?


Regards,
Rosi
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Martin
Top achievements
Rank 1
answered on 03 Oct 2008, 07:58 AM
Thanks that solved the problem.
Tags
PanelBar
Asked by
Martin
Top achievements
Rank 1
Answers by
Rosi
Telerik team
Martin
Top achievements
Rank 1
Share this question
or