DNN & Runtime Load RadDock Prometheus Object

2 posts, 0 answers
  1. luca bongioanni
    luca bongioanni avatar
    16 posts
    Member since:
    May 2007

    Posted 28 May 2007 Link to this post

    Hi telerik,

    i would like to create a RadDock Prometheus Object at runtime in a module on DNN (with ajax support)..

    There is a problem (a javascript error) when i click on the PinupPinCommand.

    The error was: "Sys.InvalidOperationException: Two components with the same id 'dnn_ctr383_Module_RadDock1' can't be added to the application."

    But i clear all the controls in placeholder after adding a new control.

    --- ASCX PAGE ---
    <%@ Control Language="VB" AutoEventWireup="false" CodeFile="Module.ascx.vb" Inherits="_Module" %>

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">

    --- ASCX.VB CODE PAGE ---

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    Dim RadDock As New RadDock
    RadDock.ID =
    RadDock.DockMode = DockMode.Floating
    RadDock.Pinned =
    RadDock.Title = "My RadDock"
    RadDock.Left = Unit.Pixel(400)
    RadDock.Top = Unit.Pixel(400)
    RadDock.Collapsed =

    RadDock.UniqueName = Guid.NewGuid().ToString()
    Dim DockPinUnpinCommand As New DockPinUnpinCommand
    DockPinUnpinCommand.AutoPostBack =
    RadDock.Commands.Add(DockPinUnpinCommand)RadDock.Commands.Add(New DockExpandCollapseCommand)

    AddHandler RadDock.Command, AddressOf RadDock_Command

    Dim AsyncPostBackTrigger As New AsyncPostBackTrigger
    AsyncPostBackTrigger.ControlID = RadDock.ID
    AsyncPostBackTrigger.EventName =

    Dim UpdatePanelContent As New UpdatePanel

    End Sub


    Protected Sub RadDock_Command(ByVal sender As Object, ByVal e As DockCommandEventArgs)
    'write into DB the RadDock's positions (Left and Top)
    End Sub

    Thanks in advice

  2. Lini
    Lini avatar
    2144 posts

    Posted 28 May 2007 Link to this post


    We have already answered your support ticket about this issue. I will close this thread so we can continue the conversation in one place.

    All the best,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top