Filter with MS DropDownList concept Issue - Unknown Server Tag

13 posts, 0 answers
  1. Patrick
    Patrick avatar
    2 posts
    Member since:
    Aug 2008

    Posted 28 Aug 2008 Link to this post

    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.
  2. Plamen Peshev
    Admin
    Plamen Peshev avatar
    886 posts

    Posted 28 Aug 2008 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Patrick
    Patrick avatar
    2 posts
    Member since:
    Aug 2008

    Posted 28 Aug 2008 Link to this post

    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.
  5. Plamen Peshev
    Admin
    Plamen Peshev avatar
    886 posts

    Posted 29 Aug 2008 Link to this post

    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.
  6. Nathan
    Nathan avatar
    1 posts
    Member since:
    Apr 2008

    Posted 16 Sep 2008 Link to this post

    Did you find a solution to this, as I am experiencing the same thing.
  7. Kim
    Kim avatar
    9 posts
    Member since:
    Aug 2008

    Posted 03 Oct 2008 Link to this post

    I have found the same problem.  Did anyone get back you?
  8. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 03 Oct 2008 Link to this post

    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.
  9. immitev
    immitev avatar
    9 posts
    Member since:
    Nov 2006

    Posted 10 Dec 2008 Link to this post

    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> 

  10. Yeroon
    Yeroon avatar
    87 posts
    Member since:
    Oct 2012

    Posted 18 Dec 2008 Link to this post

    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.
  11. Ahrensberg
    Ahrensberg avatar
    73 posts
    Member since:
    Mar 2009

    Posted 11 Dec 2009 Link to this post

    Thank you immitev and Yeroon. Solved my problem! ;o)
  12. Wired_Nerve
    Wired_Nerve avatar
    163 posts
    Member since:
    Oct 2007

    Posted 19 May 2010 Link to this post

    Wow, I am so happy I finally found this post...  Solved my problem perfectly,...
  13. Kanna
    Kanna avatar
    5 posts
    Member since:
    Aug 2010

    Posted 09 Oct 2011 Link to this post

    A simple problem with a simple solution wasted my time alot.
    Thanks.. solved it now by adding assembly name in register tag.
  14. Felix
    Felix avatar
    1 posts
    Member since:
    Dec 2012

    Posted 17 May 2013 Link to this post

     immitev solved my problem. Thanks!
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017