jQWidgets Forums

jQuery UI Widgets Forums Grid jqxGrid: The data is still loading. When the data binding is completed, the Grid

This topic contains 2 replies, has 2 voices, and was last updated by  eck8tor 11 years, 5 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author

  • eck8tor
    Participant

    Hi !

    I read the forum about this error and I don’t understand why I catch this error.

    I try to put bindingcomplete but maybe I didn’t put at the right place.

    There is my code:

    var theme = ‘classic’;
    var source =
    {
    datatype: “json”,
    datafields: [
    { name: ‘no_track’ },
    { name: ‘track’ },
    { name: ‘artiste’ },
    { name: ‘album’ },
    { name: ‘genre’ },
    { name: ‘year’ },
    { name: ‘duration’ }
    ],
    cache: false,
    async: true,
    url: ‘song.php?’ + dataString,
    root: ‘Rows’,
    beforeprocessing: function (data) {
    source.totalrecords = data[0].TotalRows;
    }
    };
    var dataadapter = new $.jqx.dataAdapter(source);
    // initialize jqxGrid

    $(“#jqxgrid”).on(‘bindingcomplete’, function (event) {
    $(“#jqxgrid”).jqxGrid(‘endupdate’);
    })

    $(“#jqxgrid”).jqxGrid(
    {
    width: songwidth,
    height: “400”,
    source: dataadapter,
    theme: theme,
    autoheight: false,
    pageable: true,
    virtualmode: true,
    pagesize: 20,
    //pagesizeoptions: [’50’, ‘100’, ‘200’],
    rendergridrows: function (params)
    {
    return params.data;
    },

    columns:
    [
    { text: ‘No_Track’, dataField: ‘no_track’, width: ‘5%’ },
    { text: ‘Track’, dataField: ‘track’, width: ‘25%’ },
    { text: ‘Artiste’, dataField: ‘artiste’, width: ‘25%’ },
    { text: ‘Album’, dataField: ‘album’, width: ‘25%’ },
    { text: ‘Genre’, dataField: ‘genre’, width: ‘10%’ },
    { text: ‘Annee’, dataField: ‘year’, width: ‘5%’ },
    { text: ‘Duree’, dataField: ‘duration’, width: ‘5%’ }
    ]
    });

    Where is my error ?

    Thanks in advance !

    Eric


    Dimitar
    Participant

    Hello Eric,

    It is possible that the issue originates in another part in your page. Please provide us with a complete example and remember to format your code by selecting it and pressing the code button from the tools panel.

    Best Regards,
    Dimitar

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


    eck8tor
    Participant

    Thanks Dimitar for your quick answer…

    I just revisite my code and now everything it’s correct ! NO MORE ERRORS !!!!

    Thanks 🙂

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

You must be logged in to reply to this topic.