This is a migrated thread and some comments may be shown as answers.

Intellisense does not work-unrecognized tag

3 Answers 126 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gary
Top achievements
Rank 1
Gary asked on 02 Jul 2008, 12:43 PM
Using the RadControls for ASP.Net 2008 Q1, version 2008.1.515.20.  When registering the Telerik.Web.UI assembly in my page, I add a Radgrid but I receive a message the the tag is unrecognizable, yet the web site, along with the grid runs fine.  I can not get the intellisense to work because of this and all grid items have a green line with the message that the tags are unrecognizable.  The Telerik,Web.UI dll is referenced in the project.  Here's the page html.  This is quite frustrating.

<%

@ Page Language="C#" MasterPageFile="~/Masters/Site.Master" AutoEventWireup="true" CodeBehind="Forms.aspx.cs" Inherits="MIDI_Internal.Lookups.NSNs.Forms" Title="MIDI - Manage Forms" %>

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<

asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"> </asp:Content>

<
asp:Content ID="Content2" ContentPlaceHolderID="cphPageTitle" runat="server"> Manage Forms
</asp:Content>

<

asp:Content ID="Content3" ContentPlaceHolderID="cphMainBody" runat="server"> <asp:ObjectDataSource ID="ObjectDataSourceLookup" runat="server" DeleteMethod="Delete" InsertMethod="Insert" SelectMethod="GetDT" UpdateMethod="Update" TypeName="MIDI_Internal.BLL_Form" >

<
DeleteParameters>
<asp:Parameter Name="FormID" Type="Int32" />
</DeleteParameters>

<UpdateParameters>
<asp:Parameter Name="FormID" Type="Int32" />
<asp:Parameter Name="Form" Type="String" />
</UpdateParameters>

<SelectParameters>
<asp:Parameter Name="FormID" Type="Int32" />
</SelectParameters>

<InsertParameters>
<asp:Parameter Name="Form" Type="String" />
</InsertParameters>
</asp:ObjectDataSource>

<
asp:DropDownList ID="ddRadGridStyles" runat="server" AutoPostBack="True" onselectedindexchanged="ddRadGridStyles_SelectedIndexChanged"> </asp:DropDownList>

<telerik:RadGrid ID="RadGridLookup" runat="server" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" GridLines="None" Skin="Vista" EnableAJAX="True" width="60%" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" DataSourceID="ObjectDataSourceLookup" OnItemDeleted="RadGridLookup_ItemDeleted" OnDeleteCommand="RadGridLookup_Delete" OnInit="RadGridLookup_Init" PagerStyle-Mode="NextPrevNumericAndAdvanced" OnColumnCreated="RadGridLookup_ColumnCreated" >

<ClientSettings>
<Scrolling AllowScroll="True" UseStaticHeaders="True" />
</ClientSettings>

<PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
<MasterTableView AllowMultiColumnSorting="True" PageSize="15" CommandItemDisplay="TopAndBottom" AutoGenerateColumns="False" DataKeyNames="FormID" DataSourceID="ObjectDataSourceLookup">

<RowIndicatorColumn Visible="False">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>

<ExpandCollapseColumn Visible="False" Resizable="False">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>

<Columns>
<telerik:GridEditCommandColumn ButtonType="ImageButton" UpdateImageUrl="~\RadControls\Skins\Vista\Grid\Update.gif" EditImageUrl="~\RadControls\Skins\Vista\Grid\Edit.gif" InsertImageUrl="~\RadControls\Skins\Vista\Grid\AddRecord.gif" CancelImageUrl="~\RadControls\Skins\Vista\Grid\Cancel.gif" UniqueName="EditCommandColumn">
</telerik:GridEditCommandColumn>

<telerik:GridBoundColumn DataField="FormId" DataType="System.Int32" HeaderText="ID" ReadOnly="True" SortExpression="FormId" UniqueName="FormId" Visible="false">
</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="Form" HeaderText="Name" SortExpression="Form" UniqueName="Form" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains"> </telerik:GridBoundColumn>

<telerik:GridButtonColumn ConfirmText="Are you sure you want to delete this record?" ButtonType="ImageButton" ImageUrl="~\RadControls\Skins\Vista\Grid\Delete.gif" CommandName="Delete" Text="Delete" UniqueName="DeleteColumn">
<HeaderStyle Width="20px" />
</telerik:GridButtonColumn>

</Columns>

<EditFormSettings>
<EditColumn UniqueName="EditCommandColumn1"></EditColumn>
</EditFormSettings>

</MasterTableView>

<
ClientSettings>
<Selecting AllowRowSelect="true" />
</ClientSettings>

</telerik:RadGrid>

</

asp:Content>

3 Answers, 1 is accepted

Sort by
0
Thomas
Top achievements
Rank 1
answered on 02 Jul 2008, 02:19 PM
You are referencing the dll, but are you using it?

At the top of your aspx.cs file, is there a using Telerik.Web.UI statement?

If you are using VB.net, my apologies, but I am unfamiliar with VB.  Should be similar.
0
Gary
Top achievements
Rank 1
answered on 02 Jul 2008, 02:37 PM
I am using C#, I solved the problem.  I removed the Telerik.Web.UI reference from my web project, deleted the DLL from the bin folder, copied version 2008.1.515.20 from the RadControls installation to the bin folder ALONG WITH the Telerik.Charting reference (this may have been the problem), added the references to both.  It now works properly.  I am using VS 2008, it looks like I am targeting the 2.0 framework - this can cause problems as well- make sure you are using the correct DLL (from the Bin folder of the installation, not Bin35).  Thanks for you quick reply.

Gary
0
Daniel
Telerik team
answered on 03 Jul 2008, 07:14 AM
Hello Gary,

We often receive a requests for support concerning Intellisense and we believe this could be an issue in VisualStudio. Some of our clients resolved this behavior by adding Telerik.Charting to their project.
Additionally, you can check is some of this threads would help in this case:

VS2008 Intellisense
Unknown server tag issue

It is known that VS2008 non-SP1 is a possible cause for similar issues therefore please check your version.

Best wishes,
Daniel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Gary
Top achievements
Rank 1
Answers by
Thomas
Top achievements
Rank 1
Gary
Top achievements
Rank 1
Daniel
Telerik team
Share this question
or