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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Why do not use special characters in grid id.

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.


Article ID: Published Date: Last Revised Date: Platform: Control:
4265 03/11/2015 08/06/2015 JavaScript ejGrid
Did you find this information helpful?
Norbertas Gaulia 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'.

Add Comment
You must log in to leave a comment

Please sign in to access our KB

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

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