Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > PanelBar > Cannot convert object of type 'System.String' to type 'System.String[]

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

Feed from this thread
  • Laurentiu avatar

    Posted on Jan 5, 2012 (permalink)

    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

    Reply

  • Laurentiu avatar

    Posted on Jan 8, 2012 (permalink)

    Any suggestion is welcome.

    Reply

  • Kate Kate admin's avatar

    Posted on Jan 10, 2012 (permalink)

    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

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > PanelBar > Cannot convert object of type 'System.String' to type 'System.String[]
Related resources for "Cannot convert object of type 'System.String' to type 'System.String[]"

[  ASP.NET PanelBar Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]