jQWidgets Forums

jQuery UI Widgets Forums Grid Problems with grid data loading

Tagged: 

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

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • Problems with grid data loading #24218

    Jay Chung
    Member

    Hello.
    I’m using jqxgrid with remote data provider like below.

    var dataSource = {
    datatype: 'json',
    datafields: [
    ....
    ],
    root:'DATA',
    data: {
    // parameters for ajax request
    },
    url: // URL for remote data provider,
    beforeprocessing: function(data) {
    dataSource.totalrecords = data.TOTAL_COUNT;
    }
    };
    var dataAdapter = new $.jqx.dataAdapter(dataSource);
    $("#gridobj").jqxGrid({
    width: 750,
    ....
    sortable: false,
    altrows: true,
    pageable: true,
    enabletooltips:true,
    virtualmode: true,
    columns:[
    ....
    ],
    source: dataAdapter,
    rendergridrows: function(param) {
    return dataAdapter.records;
    },
    pagerrenderer: function() {
    // custom pager renderer sources
    }
    });

    It works nicely, with no error.
    But there is a problem that jqxGrid requests grid data twicely every time.
    Is any wrong usage on my sources or known problems in jqxGrid?

    Problems with grid data loading #24220

    Peter Stoev
    Keymaster

    Hi,

    We cannot reproduce that with the current version. Could you please, send us a sample to support@jqwidgets.com which illustrates that?

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Problems with grid data loading #24223

    Jay Chung
    Member

    Thanks for fast reply.
    But, that’s all of my source. And that problem comes up almost all grids in my web apps.
    And more, it appears only in IE browser. (I check out that sources on Chrome, Firefox and IE)
    I use jqwidgets of version 2.6.0 and use servlet for providing data with JSON format via AJAX.

    Problems with grid data loading #24227

    Peter Stoev
    Keymaster

    Hi,

    The current version is 2.9.1. Unfortunately, we can try to help only about issues with the current version as, there is a very good chance the reported behavior from an older version to be already resolved in the newest one.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Problems with grid data loading #24233

    Jay Chung
    Member

    Thank you very much.
    I’ll try newest version of jqxwidget as you said, and report any results whether the problem solves or not.

    Problems with grid data loading #24234

    Peter Stoev
    Keymaster

    Hi,

    Sounds good. However, keep in mind that there are many breaking changes since ver. 2.6 so check the Release Notes first and make sure that you update the Scripts and CSS files, too.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.