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.
Unfortunately, activation email could not send to your email. Please try again.

Error: Unknown server tag 'ej:CustomContexMenuItems'.

Thread ID:

Created:

Updated:

Platform:

Replies:

131624 Jul 19,2017 04:14 AM Jul 20,2017 11:56 PM ASP.NET Web Forms 3
loading
Tags: Grid
tomer
Asked On July 19, 2017 04:14 AM

Hi
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">
        <CustomContextMenuItem>
            <ej:CustomContexMenuItems Id="clear" Text="Clear Selection" /> 
        </CustomContextMenuItem>
    </ContextMenuSettings>
</ej:Grid>

Thanks,
   Tomer

Prasanna Kumar Viswanathan [Syncfusion]
Replied On July 20, 2017 06:00 AM

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. 
 
 
ASPX 
<%@ Register Assembly="Syncfusion.EJ, Version=14.1460.0.46, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" namespace="Syncfusion.JavaScript.Models" TagPrefix="ej" %> 
(or) 
Web.config 
 
<add namespace="Syncfusion.JavaScript.Models" assembly="Syncfusion.EJ, Version=14.1460.0.46, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" tagPrefix="ej" /> 
 
 

Regards, 
Prasanna Kumar N.S.V 


tomer
Replied On July 20, 2017 06:14 AM

19/5000
Works like a charm. Thanks.


Prasanna Kumar Viswanathan [Syncfusion]
Replied On July 20, 2017 11:56 PM

Hi Tomer, 

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

Please let us know if you need any further assistance. 

Regards, 
Prasanna Kumar N.S.V 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;