Save dynamically created Raddoc into the database

2 posts, 0 answers
  1. prayag ganoje
    prayag ganoje avatar
    127 posts
    Member since:
    Feb 2010

    Posted 11 Mar 2011 Link to this post

    I am trying to save the dynamically  created raddoc in to mssql. GetRegisteredDocksState() does not recognize the newly created raddoc.

    Public Sub SaveState()
            Dim dockState As String
            Dim serializer As New Script.Serialization.JavaScriptSerializer()
            Dim stateList As List(Of DockState) = RadDockLayout1.GetRegisteredDocksState()
            Dim serializedList As New StringBuilder()
            Dim i As Integer = 0
            While i < stateList.Count
                i += 1
            End While
            dockState = serializedList.ToString()

     Do you have any KB article on the same ?

  2. Pero
    Pero avatar
    1156 posts

    Posted 14 Mar 2011 Link to this post

    Hello Prayag,

    In order for the GetRegisteredDocksState method to return the state of all docks, each dock needs to be a child control (it doesn't need to be direct child) of the RadDockLayout. Also, the dock needs to be added before invoking the method to retrieve the state.
    We have two projects in our Code Library that demonstrate how to dynamically create RadDock controls and save their state in a DataBase. Here are links:

    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top