I want use the same value for two columns, here is example:
var source ={
datatype: “json”,
datafields: [
{ name: ‘idn’ },
{ name: ‘ntitle’ },
{ name: ‘cdate’},
{ name: ‘pdate’},
{ name: ‘title’, type:’string’ },
{ name: ‘publish’ }
],
url: geot.getContext() + “/news/newslist/”
};
$(“#newsgrid”).jqxGrid({
width: ‘100%’,
source: source,
theme: ‘office’,
editable: true,
selectionmode: ‘singlecell’,
autoheight: true,
sortable: true,
altrows: true,
columns: [
{ text: ‘ID’, datafield: ‘idn’, width: ‘5%’},
{ text: ‘Aonther ID’, datafield: ‘idn’, width: ‘40%’},
]
});
But when I run this, shows me error like datafield column invalid?
Is it possible to use one datafield for two or more different columns?