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

Cannot convert object of type 'System.String' to type 'System.String[]

2 Answers 422 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Laurentiu
Top achievements
Rank 1
Laurentiu asked on 05 Jan 2012, 04:09 PM
In a project with non ajax / ajax controls ( Q3 2008  version ) I want to create a master page for ajax controls.
I get the error below when I set
PersistStateInCookie="true" to the 'telerik:RadPanelBar' control .
If I set PersistStateInCookie = "false"   it is working but it doesn't keep my selection.

 <telerik:RadSlidingPane ID="RadSlidingPane1" runat="server" Scrolling="None" 
      Width="180px" Style="margin0pxpadding0px" BorderWidth="0px" OnClientPaneDocked="SlidePaneDocked"
          OnClientPaneUnDocked="SlidePaneUnDocked" Index="0">
                            
      <asp:ContentPlaceHolder ID="contentLeft" runat="server">
      </asp:ContentPlaceHolder>
 
      
      <asp:UpdatePanel ID="upMaster" runat="server" UpdateMode="Conditional">            <ContentTemplate>                <asp:UpdateProgress ID="UpdateProgress1" AssociatedUpdatePanelID="upMaster" DynamicLayout="true"                                         runat="server">                  <ProgressTemplate>                          (...loading)                   </ProgressTemplate>                </asp:UpdateProgress>                
                <div style="floatleft">                        <telerik:RadPanelBar ID="leftPanels" runat="server" Height="100%" ExpandMode="SingleExpandedItem" Width="180px" 
                        PersistStateInCookie="true" />                 </div>            </ContentTemplate>       </asp:UpdatePanel>    </telerik:RadSlidingPane>
[InvalidOperationException: Cannot convert object of type 'System.String' to type 'System.String[]']
   System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeInternal(Object o, Type type, JavaScriptSerializer serializer) +305914
   System.Web.Script.Serialization.ObjectConverter.ConvertObjectToType(Object o, Type type, JavaScriptSerializer serializer) +192
   System.Web.Script.Serialization.ObjectConverter.AssignToPropertyOrField(Object propertyValue, Object o, String memberName, JavaScriptSerializer serializer) +284
   System.Web.Script.Serialization.ObjectConverter.ConvertDictionaryToObject(IDictionary`2 dictionary, Type type, JavaScriptSerializer serializer) +1349
   System.Web.Script.Serialization.ObjectConverter.ConvertObjectToType(Object o, Type type, JavaScriptSerializer serializer) +192
   System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(String input) +66
   Telerik.Web.UI.RadPanelBar.LoadState(String state) +152
   Telerik.Web.UI.RadPanelBar.LoadStateFromCookie() +257
   Telerik.Web.UI.RadPanelBar.OnPreRender(EventArgs e) +60
   System.Web.UI.Control.PreRenderRecursiveInternal() +108
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394

Thank you
Laurentiu

2 Answers, 1 is accepted

Sort by
0
Laurentiu
Top achievements
Rank 1
answered on 08 Jan 2012, 04:24 PM
Any suggestion is welcome.

0
Kate
Telerik team
answered on 10 Jan 2012, 10:00 AM
Hello Laurentiu,

Unfortunately we no longer provide support to the Q3 2008 version of the Telerik controls. Please refer to our Support Lifecycle Policy here for more details.

Greetings,
Kate
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
PanelBar
Asked by
Laurentiu
Top achievements
Rank 1
Answers by
Laurentiu
Top achievements
Rank 1
Kate
Telerik team
Share this question
or