Hi,
How could I solve my problem? I tried eval(); and (function() {})();
Code
function refreshDatagrid() {
const columns = $('#datalist').datalist('getRows');
$('#datagrid').datagrid({ columns: [columns] });
}
Data
[
{
"field": "field_fdqzv",
"title": "title"
},
{
"field": "field_2agdu",
"title": "2agdu",
"_selected": true,
"width": 200,
"align": "center",
"formatter": "function (value, row, index) {\n\treturn value + ' ' + index;\n}",
"styler": ""
}
]