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

Filter with MS DropDownList concept Issue - Unknown Server Tag

12 Answers 542 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 1
Patrick asked on 28 Aug 2008, 03:31 PM
I need a little bit of insight on an "Unknown Server Tag" issue coming from the Filtering with MS DropDownList tutorial located at (http://www.telerik.com/help/aspnet-ajax/grdfilteringwithdropdownlist.html). 

I've copied the Source provided there letter-for-letter to "Show Off" the RADGrid's capabilities compared to others.  However, there are a few warnings and parser errors that are halting the development:

In designer, the gridview renders fine and the custom columns are editable.  However at runtime the ASPX page displays a parser error for an unknown server tag custom:MyCustomFilteringColumn.

The two warnings in question are:

Element 'MyCustomFilteringColumn' 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.

and

Generation of designer file failed: Unknown server tag 'custom:MyCustomFilteringColumn'

The one time it did not give these errors, it complained that columns about the column type. 

Any insight on this?  I'm using the Trial version at the moment, and the code is a carbon copy from the URL provided above.  Development environment is Visual Studio 2008 with Service Pack 1.

Thanks for the support.

12 Answers, 1 is accepted

Sort by
0
Missing User
answered on 28 Aug 2008, 03:40 PM
Hello Patrick,


At the top of the the ASPX page, register the namespace for the custom column class. Here is an example:

<%@ Register Namespace="MyStuff" TagPrefix="custom" %> 

If you need additional assistance, do not hesitate to contact me



Greetings,
Plamen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Patrick
Top achievements
Rank 1
answered on 28 Aug 2008, 03:45 PM
The @Register entry is there with both the namespace and TagPrefix attribute copied directly from the tutorial page.  Unfortunately, it's still not recognizing the server tag. 

As additional information, the properties window in source view displays properties for GridBoundColumn tags, however for the MyCustomFilteringColumn tags only < HTML ELEMENT > is being displayed.
0
Missing User
answered on 29 Aug 2008, 03:14 PM
Hello Patrick,


I tried to reproduce the problem at our side, but to no avail. Can you please open a new support ticket and send us a small sample project where the problem can be observed?

Thanks for your cooperation.

Sincerely yours,
Plamen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Nathan
Top achievements
Rank 1
answered on 16 Sep 2008, 06:36 PM
Did you find a solution to this, as I am experiencing the same thing.
0
Kim
Top achievements
Rank 1
answered on 03 Oct 2008, 01:13 PM
I have found the same problem.  Did anyone get back you?
0
Sebastian
Telerik team
answered on 03 Oct 2008, 01:30 PM
Hello guys,

You can use the version from your local RadControls installation of this online demo of RadControls for ASP.NET AJAX:

http://demos.telerik.com/ASPNET/Prometheus/Grid/Examples/Programming/FilteringTemplateColumns/DefaultCS.aspx

or the forum thread linkes below (converting the solution to use the ASP.NET AJAX version of the grid):

http://www.telerik.com/community/forums/thread/b311D-ecghh.aspx

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
immitev
Top achievements
Rank 1
answered on 10 Dec 2008, 01:00 PM
I had the same issue, and the problem was in the Register directive where Assembly is actually obligatory field.

If you use it in multiple places you might add it directly in the web.config:

    <system.web> 
        <pages validateRequest="false"
            <controls> 
                <add tagPrefix="custom" namespace="YourNamespace" assembly="YourAssembly" /> 
            </controls> 
        </pages> 

0
Yeroon
Top achievements
Rank 2
answered on 18 Dec 2008, 02:10 PM
I resolved it by adding the Assembly name.

<%@ Register Namespace="MyStuff" TagPrefix="custom" Assembly="MyAssembly" %>

If you are not sure what the Assemblyname should be, go to the property pages of your project and look at the Application Tab.

There is a textbox Assembly Name there. Use whats in the textbox.

The example from telerik assumes a Website and not a Web Application project. Assembly required for the latter.
0
Ahrensberg
Top achievements
Rank 1
answered on 11 Dec 2009, 01:18 PM
Thank you immitev and Yeroon. Solved my problem! ;o)
0
Wired_Nerve
Top achievements
Rank 2
answered on 19 May 2010, 08:09 PM
Wow, I am so happy I finally found this post...  Solved my problem perfectly,...
0
Kanna
Top achievements
Rank 2
answered on 09 Oct 2011, 03:09 PM
A simple problem with a simple solution wasted my time alot.
Thanks.. solved it now by adding assembly name in register tag.
0
Felix
Top achievements
Rank 1
answered on 17 May 2013, 07:42 AM
 immitev solved my problem. Thanks!
Tags
Grid
Asked by
Patrick
Top achievements
Rank 1
Answers by
Missing User
Patrick
Top achievements
Rank 1
Nathan
Top achievements
Rank 1
Kim
Top achievements
Rank 1
Sebastian
Telerik team
immitev
Top achievements
Rank 1
Yeroon
Top achievements
Rank 2
Ahrensberg
Top achievements
Rank 1
Wired_Nerve
Top achievements
Rank 2
Kanna
Top achievements
Rank 2
Felix
Top achievements
Rank 1
Share this question
or