We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Error: Unknown server tag 'ej:CustomContexMenuItems'.

I'm using the ej:Grid and I want to add Custom Context Menu.
Why do I get this error: Unknown server tag 'ej:CustomContexMenuItems'.?

My page:
<%@ Register assembly="Syncfusion.EJ.Web, Version=14.1460.0.46, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" namespace="Syncfusion.JavaScript.Web" tagprefix="ej" %>

<ej:Grid ID="Grid1" runat="server" AllowTextWrap="true" AllowPaging="true" AllowResizing="true" AllowSorting="true" AllowFiltering="true">
    <ClientSideEvents QueryCellInfo="GridQueryCellInfo" RecordDoubleClick="RecordDoubleClick" ContextClick="contextClick"/>
    <ContextMenuSettings EnableContextMenu="true" DisableDefaultItems="true">
            <ej:CustomContexMenuItems Id="clear" Text="Clear Selection" /> 


3 Replies

PK Prasanna Kumar Viswanathan Syncfusion Team July 20, 2017 10:00 AM UTC

Hi Tomer, 

Thanks for contacting Syncfusion support. 

We checked your code example and found that the issue is due to the missing reference of the Syncfusion.JavaScript.Models namespace in the page. The ej:CustomContexMenuItems is available in Syncfusion.JavaScript.Models  namespace from Syncfusion.EJ assembly. So,  please add the below line either in your ASPX page or web.config to resolve this issue. 
<%@ Register Assembly="Syncfusion.EJ, Version=14.1460.0.46, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" namespace="Syncfusion.JavaScript.Models" TagPrefix="ej" %> 
<add namespace="Syncfusion.JavaScript.Models" assembly="Syncfusion.EJ, Version=14.1460.0.46, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" tagPrefix="ej" /> 

Prasanna Kumar N.S.V 

TO tomer July 20, 2017 10:14 AM UTC

Works like a charm. Thanks.

PK Prasanna Kumar Viswanathan Syncfusion Team July 21, 2017 03:56 AM UTC

Hi Tomer, 

We are happy to hear that your issue has been solved. 

Please let us know if you need any further assistance. 

Prasanna Kumar N.S.V 

Live Chat Icon For mobile
Up arrow icon