jQWidgets Forums
jQuery UI Widgets › Forums › Grid › jqxGrid: The data is still loading. When the data binding is completed, the Grid
Tagged: bindingcomplete, error, grid, jqxgrid
This topic contains 2 replies, has 2 voices, and was last updated by eck8tor 11 years, 5 months ago.
-
Author
-
December 3, 2013 at 1:54 pm jqxGrid: The data is still loading. When the data binding is completed, the Grid #45928
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
December 3, 2013 at 3:21 pm jqxGrid: The data is still loading. When the data binding is completed, the Grid #45931Hello 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,
DimitarjQWidgets team
http://www.jqwidgets.com/December 3, 2013 at 5:50 pm jqxGrid: The data is still loading. When the data binding is completed, the Grid #45938Thanks Dimitar for your quick answer…
I just revisite my code and now everything it’s correct ! NO MORE ERRORS !!!!
Thanks 🙂
-
AuthorPosts
You must be logged in to reply to this topic.