Sean Rich
Sean Rich

Reputation: 2358

Element 'RadGrid' is not a known element

I'm trying to use the Telerik RadGrid, but I'm getting the following warning:

"Element 'RadGrid' is not a known element. This can occur if there is a compilation error in the Web site, or the web.config file is missing."

Here are some things that I've already checked:

EDIT: Here's the markup I'm using.

<%@ Page Title="" Language="C#" MasterPageFile="~/masterPages/ActionAreaSinglePanelMaster.Master" AutoEventWireup="true" CodeBehind="overview.aspx.cs" Inherits="Compass.overview" %>


<asp:Content ID="PanelHeaderContent" ContentPlaceHolderID="PanelHeaderPlaceholder" runat="server">
    <p>Panel header</p>
</asp:Content>


<asp:Content ID="PanelContent" ContentPlaceHolderID="PanelDataPlaceholder" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <script src="../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="../Scripts/radGridLayout.js" type="text/javascript"></script>
    <script type="text/javascript">
        panelGridID = "<%=panelGrid.ClientID %>";
    </script>

    <asp:ObjectDataSource ID="BundleItemsSource" runat="server" TypeName="Compass.Data.CompassUI" SelectMethod="BundleDataSet">
        <SelectParameters>
            <asp:QueryStringParameter Name="bundleID" QueryStringField="bundle" />
        </SelectParameters>
    </asp:ObjectDataSource>

    <telerik:RadGrid id="panelGrid" runat="server" DataSourceID="BundleItemsSource" Height="100%" Width="100%">
        <ClientSettings>
            <Scrolling AllowScroll="True" UseStaticHeaders="True" />
            <ClientEvents OnGridCreated="gridCreated" />
        </ClientSettings>
    </telerik:RadGrid>

</asp:Content>

Upvotes: 2

Views: 4749

Answers (2)

Karthik B S
Karthik B S

Reputation: 21

Close Visual Studio, delete the schema cache, and re-open Visual Studio. You can find the schemas under something like:

C:\Users\karthik\AppData\Roaming\Microsoft\VisualStudio\10.0\ReflectedSchemas

It is safe to delete all files in this folder.

Upvotes: 2

CodingGorilla
CodingGorilla

Reputation: 19842

Changing the Assembly attribute to remove the specific version, public key, etc apparently fixed the problems.

Upvotes: 1

Related Questions