1) Download and install the Essential Studio v13.3.0.18 from the below link.
2) Replace the Syncfusion scripts, and CSS in your project from the following location.
Scripts and Css: C:\Program Files (x86)\Syncfusion\Essential Studio\XX.X.X.XX\JavaScript\assets
Here XX.X.X.XX denotes the product version(13.3.0.18).
After upgrading, please ensure to clear browser cache to avoid accidental reference of the old and scripts/CSS.
We have prepared a sample with column template without field/headertext (for a template column) that can be referred in the following jsPlayground.
http://jsplayground.syncfusion.com/4w4stq4b
If you are unable to upgrade to our latest version, define the headertext of the template column as an empty string. Please refer to the following code example.
<script type="text/x-jsrender" id="checkboxTemplateDemo"> <input type="checkbox" class="rowCheckboxDemo" /> </script> <div id="Grid"></div> <script type="text/javascript"> $(function () { $("#Grid").ejGrid({ dataSource: ej.DataManager(window.employeeView), allowPaging: true, templateRefresh: "refresh", columns: [ { headerText: ""/*use an empty string for headertext*/, template: true, templateID: "#checkboxTemplateDemo" }, . . . . . . { field: "Country", headerText: "Country" }
] }); }); function refresh(args) { $(args.cell).find("input").ejCheckBox({ checked: true }); } |
I have corrected sample as follow::http://jsplayground.syncfusion.com/1d2v0wvm
<script type="text/x-jsrender" id="checkboxTemplateDemo"> <input type="checkbox" class="rowCheckboxDemo" /> </script> <div id="Grid"></div> <script type="text/javascript"> $(function () { $("#Grid").ejGrid({ // the datasource "window.employeeView" is referred from jsondata.min.js dataSource: ej.DataManager(window.gridData).executeLocal(ej.Query().take(8)), allowPaging: true, templateRefresh: "refresh", pageSettings: { pageSize: 4 }, actionComplete: 'complete', editSettings: { allowEditing: true, allowAdding: true, allowDeleting: true }, toolbarSettings: { showToolbar: true, toolbarItems: [ej.Grid.ToolBarItems.Add] }, columns: [ { headerText: ""/*use an empty string for headertext*/, template: true, templateID: "#checkboxTemplateDemo", width: 90 }, { field: "OrderID", isPrimaryKey: true, headerText: "Order ID" }, . . . . . { field: "EmployeeID", allowEditing: false, headerText: "Employee ID", editType: ej.Grid.EditingType.Dropdown }
] }); }); function refresh(args) { if ($(args.cell).find(".e-chkbox-wrap").length == 0) $(args.cell).find("input").ejCheckBox({ checked: true }); } function complete(args) { if (args.requestType == "add") //requestType must be “add” $("#GridEmployeeID").ejDropDownList({ enabled: true })//Selector must be Grid ID and Field name "Grid" + "EmployeeID" } |
<head>………………………………..
<script src="scripts/ej.core.js"></script>
<script src="scripts/ej.data.js"></script>
<script src="scripts/ej.globalize.min.js"></script>
<script src="scripts/ej.grid.min.js"></script>
<script src="scripts/ej.pager.min.js"></script>
<script src="scripts/ej.scroller.min.js"></script>
<script src="scripts/ej.waitingpopup.min.js"></script>
<script src="scripts/ej.dropdownlist.min.js"></script>
<script src="scripts/ej.dialog.min.js"></script>
<script src="scripts/ej.button.min.js"></script>
<script src="scripts/ej.autocomplete.min.js"></script>
<script src="scripts/ej.checkbox.min.js"></script>
<script src="scripts/ej.draggable.min.js"></script>
<script src="scripts/ej.datepicker.min.js"></script>
<script src="scripts/ej.datetimepicker.min.js"></script>
<script src="scripts/ej.editor.min.js"></script>
<script src="scripts/ej.toolbar.min.js"></script>
<script src="scripts/ej.tooltip.min.js"></script>
<script src="scripts/ej.menu.min.js"></script>
<script src="scripts/ej.excelfilter.min.js"></script>
<script src="scripts/ej.radiobutton.min.js"></script>
<script src="scripts/ej.togglebutton.min.js"></script>
</head> |
<script src="scripts/ej.core.js"></script>
<script src="scripts/ej.data.js"></script>
<script src="scripts/ej.touch.min.js"></script>
<script src="scripts/ej.globalize.min.js"></script>
<script src="scripts/ej.grid.min.js"></script>
<script src="scripts/ej.pager.min.js"></script>
<script src="scripts/ej.scroller.min.js"></script>
<script src="scripts/ej.waitingpopup.min.js"></script>
<script src="scripts/ej.dropdownlist.min.js"></script>
<script src="scripts/ej.autocomplete.min.js"></script>
<script src="scripts/ej.checkbox.min.js"></script>
<script src="scripts/ej.draggable.min.js"></script>
<script src="scripts/ej.datepicker.min.js"></script>
<script src="scripts/ej.datetimepicker.min.js"></script>
<script src="scripts/ej.timepicker.min.js"></script>
<script src="scripts/ej.editor.min.js"></script>
<script src="scripts/ej.excelfilter.min.js"></script>
|
CDN link of “ej.culture.min.js" - https://cdn.syncfusion.com/js/assets/i18n/ej.culture.de-DE.min.js
CDN link of “ej.draggable.min.js” - http://cdn.syncfusion.com/15.4.0.17/js/common/ej.draggable.min.js
|
Build location of “ej.culture.min.js”-
C:\xxxxxx\Syncfusion\Essential Studio\xxxxx\JavaScript\assets\scripts\i18n
Build location of “ej.draggable.min.js”-
C:\xxxxx\Syncfusion\Essential Studio\xxxxx\JavaScript\assets\scripts\common |
<script src="scripts/ej.core.js"></script>
<script src="scripts/ej.data.js"></script>
<script src="scripts/ej.touch.min.js"></script>
<script src="scripts/ej.globalize.min.js"></script>
<script src="scripts/ej.grid.min.js"></script>
<script src="scripts/ej.pager.min.js"></script>
<script src="scripts/ej.scroller.min.js"></script>
<script src="scripts/ej.waitingpopup.min.js"></script>
<script src="scripts/ej.dropdownlist.min.js"></script>
<script src="scripts/ej.autocomplete.min.js"></script>
<script src="scripts/ej.checkbox.min.js"></script>
<script src="scripts/ej.draggable.min.js"></script>
<script src="scripts/ej.datepicker.min.js"></script>
<script src="scripts/ej.datetimepicker.min.js"></script>
<script src="scripts/ej.timepicker.min.js"></script>
<script src="scripts/ej.editor.min.js"></script>
<script src="scripts/ej.excelfilter.min.js"></script>
|