RadDockLayer error when using ajaxControlToolkit PopupControlExtender

2 posts, 0 answers
  1. Ajit
    Ajit avatar
    1 posts
    Member since:
    Feb 2009

    Posted 25 Mar 2009 Link to this post

    I am trying to use ajaxToolKit's PopupControlExtender control inside of the TitleBarTemplate inside a RadDock inside of an ASCX file. This works fine when viewed in a browser, but Visual Studio's design view gives this error:

    Error Creating Control - RadDockLayout
    Unable to create type 'ajaxToolkit"PopupControlExtender'. Could not load assembly 'System.Web.Extensions....' or one of its dependecies. Tye system cannot find the file specified. What am I doing wrong?

    is it a problem with the web.config file?

    Thanks,

    Ajit

    <%

    @ Control Language="VB" AutoEventWireup="false" CodeFile="Test.ascx.vb" Inherits="Apps_MapViewer_Test" %>

     

    <%

     

    @ Register Assembly = "AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ajaxToolkit"%>

     

    <%

     

    @ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

     

     

    <

    asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">

     

    </

     

    asp:ScriptManagerProxy>

     

    <

     

    link href="../../common/css/page-styles.css" rel="stylesheet" type="text/css" />

     

    <

     

    div id="FullColDiv">

     

     

     

    <telerik:RadDockLayout ID="RadDockLayout1" Runat="server">

     

     

     

    <telerik:RadDockZone ID="RadDockZone1" Runat="server" Orientation="Vertical" FitDocks="true" EnableEmbeddedSkins="false" Skin="GNet">

     

     

     

    <telerik:RadDock ID="RadDock1" Runat="server" DockMode="Docked" EnableDrag="false" EnableEmbeddedSkins="false" Skin="GNet" Resizable="false">

     

     

     

    <Commands>

     

     

     

    <telerik:DockExpandCollapseCommand AutoPostBack="false" ClientTypeName="Telerik.Web.UI.DockExpandCollapseCommand" />

     

     

     

    <telerik:DockCommand ClientTypeName="Telerik.Web.UI.DockCommand" AutoPostBack="false" CssClass="rdNew" Name="New" Text="New Layer" />

     

     

     

    </Commands>

     

     

     

     

    <TitlebarTemplate>

     

     

     

    <div id="TitleBarTitle">My Uploads</div>

     

     

     

    <asp:Image ID="rdOptions" runat="server" ImageUrl="~/GNet/Dock/options.png" CssClass="rdOptions" />

     

     

     

    <ajaxToolkit:PopupControlExtender ID="PopupControlExtender1" runat="server" TargetControlID="rdOptions" PopupControlID="UploadOptions" Position="Bottom" />

     

     

     

    </TitlebarTemplate>

     

     

     

     

    <ContentTemplate>

     

     

     

    </ContentTemplate>

     

     

     

     

    </telerik:RadDock>

     

     

     

    </telerik:RadDockZone>

     

     

     

    </telerik:RadDockLayout>

     

     

     

     

    <asp:Panel CssClass="popupMenu" ID="UploadOptions" runat="server" style="display:none;">

     

     

     

    <table>

     

     

     

    <tr><td>Option 1</td>

     

     

     

    <td><asp:DropDownList ID="DropDownList1" runat="server">

     

     

     

    <asp:ListItem>Option 1</asp:ListItem>

     

     

     

    <asp:ListItem>Option 2</asp:ListItem>

     

     

     

    <asp:ListItem>Option 3</asp:ListItem>

     

     

     

    </asp:DropDownList>

     

     

     

    </td></tr>

     

     

     

    <tr><td>Option 2</td>

     

     

     

    <td><asp:CheckBoxList ID="CheckBoxList1" runat="server">

     

     

     

    <asp:ListItem>Checkbox 1</asp:ListItem>

     

     

     

    <asp:ListItem>Checkbox 2</asp:ListItem>

     

     

     

    </asp:CheckBoxList>

     

     

     

    </td></tr>

     

     

     

    <tr><td>Option 1</td>

     

     

     

    <td><asp:RadioButtonList ID="RadioButtonList1" runat="server">

     

     

     

    <asp:ListItem>Radiobutton 1</asp:ListItem>

     

     

     

    <asp:ListItem>Radiobutton 2</asp:ListItem>

     

     

     

    </asp:RadioButtonList>

     

     

     

    </td></tr>

     

     

     

    <tr><td align="right" colspan="2">

     

     

     

    <asp:ImageButton ID="cancel" runat="server" ImageUrl="~/images/small_cancel.png" />

     

     

     

    <asp:ImageButton ID="apply" runat="server" ImageUrl="~/images/small_apply.png" />

     

     

     

    </td></tr>

     

     

     

    </table>

     

     

     

    </asp:Panel>

     

    </

     

    div>

     

     


  2. Petio Petkov
    Admin
    Petio Petkov avatar
    825 posts

    Posted 31 Mar 2009 Link to this post

    Hi Ajit,

    I tested the code you sent and everything seems to be fine under VS2005. It seems that you don't have a System.Web.Extensions.Design.dll added to the GAC.

    P.S. Keep in mind that there is a problem with the ContentTemplate tag when a control is added inside the RadDock at design time. The ContentTemplate tag disappears and should be added manually.

    Greetings,
    Petio Petkov
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Back to Top