Hi,
I am trying to use angular version of jqxgrid . I am facing issue when i am try to set localizestrings.
Below is the code:
var localizationobj = {}
localizationobj.emptydatastring=”No row Present”;
$(“#testGrid”).jqxGrid({ source: dataAdapter });
$(“#testGrid”).jqxGrid({localizestrings: localizationobj});
Below is the error:
Uncaught Invalid property: localizestrings
$(“#optimizationGrid”).jqxGrid({ source: dataAdapter }); is working Ok.
But it is not able to find localizestrings property .
Below is my setting:
var source = {
datatype: “array”,
datafields: [
{name: ‘column1’},
{name: ‘column2’},
{name: ‘column3’},
{name: ‘column4’}
],
localdata: []
}
var dataAdapter = new $.jqx.dataAdapter(source);
vm.settings =
{
altrows: true,
width: ‘83%’,
autoheight: true,
columnsResize: true,
source: dataAdapter,
columns: [
{ text: ‘column1’, dataField: ‘column1’, width: 250, cellsrenderer: linkToConfig},
{ text: ‘column2 ‘, dataField: ‘column2’, width: 150 },
{ text: ‘column3’, dataField: ‘column3’, width: 200 },
{ text: ‘column4 ‘, dataField: ‘column4’, width: 250 }
]
}