jQuery UI Widgets Forums Plugins AngularJS Uncaught Invalid property: localizestrings

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 8 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Uncaught Invalid property: localizestrings #81624

    steel119
    Participant

    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 }

    ]
    }

    Uncaught Invalid property: localizestrings #81658

    Dimitar
    Participant

    Hi steel119,

    localizestrings is a jqxGrid method, not a property, that is why this error is thrown. You can read more about it and see an example with this method in the jqxGrid API documentation.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.