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. Example: 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: https://github.com/BorisMoore/jsrender/issues/146 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.
|
This page will automatically be redirected to the sign-in page in 10 seconds.
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'.