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

Syncfusion jQuery based widgets are no longer in active development. Switch to our pure JavaScript based next generation Essential JS 2 library.

Syncfusion Feedback

Why do not use special characters in grid id.

Platform: jQuery |
Control: ejGrid
Tags: ejgrid, grid

We used the JsRender to render grid and the grid id value to name the Jsrender helpers and templates.

So while using the special characters (+,-,>,< and etc) in grid id it will throws an error. Hence we must use only valid JavaScript name characters (a-z, A-Z, 0-9, _, $) as a grid id.


Please refer the below code snippet, here we have mentioned the grid id as "clients-grid"(which contains hyphen).



For example the helper to create alternate row will be named with the grid id as “_clients-gridAlternateRow” and the hyphen inside the JsRender template will be considered as “-” (minus symbol) and hence the error occurred.

In the below code snippet, you can see that the hyphen in the template is considered as minus symbol and the “clients” and “grid” are considered as individual property.


The similar issue has been discussed in the below link:


To resolve this issue, we suggest you to replace the hyphen ( clients-grid”) with the any of the above mentioned valid Javascript name characters (a-z, A-Z, 0-9, _, $) in the grid container id value.


You must log in to leave a comment
Harsh Shah
Nov 05, 2018

For reference js error thrown is: 

ej.grid.js:16066 Uncaught TypeError: Failed to execute 'replaceChild' on 'Node': parameter 1 is not of type 'Node'.


Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon 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.Close Icon

Live Chat Icon For mobile