jQWidgets Forums

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Server Side Paging Server Side Paging #7948

    tremi
    Member

    Thanks,

    Problem resolved by adding to source
    “beforeprocessing: function(data) {
    return $.parseJSON(data);javascript:void(0)
    }”

    could you recomend some solution for adding service side sorting and filtering to this solution

    in reply to: Server Side Paging Server Side Paging #7947

    tremi
    Member

    Hi,
    I rebild my solution like in example. But now data are not add to the grid in all page.

    var url = ‘recordService’;
    source = {
    datatype: “json”,
    datafields: [
    { name: ‘Id’ },
    ],
    formatdata: function (data) {
    return { pagenum: data.pagenum, pagesize: data.pagesize }
    },
    url: url

    };
    $.ajax({
    url: ‘totalrecordService’,
    async: false,
    success: function (data) {
    source.totalrecords = data.lastChild.textContent;
    }
    });

    var dataAdapter = new $.jqx.dataAdapter(source, { contentType: ‘application/json; charset=utf-8’ });
    $(“#grid”).jqxGrid({
    source: dataAdapter,
    theme: ”,
    pageable: true,
    autoheight: true,
    virtualmode: true,
    rendergridrows: function () {
    return dataAdapter.records;
    },
    columns: [
    { text: ‘Id’, datafield: ‘Id’ },

    ]
    });
    }


    tremi
    Member

    Hi Dimitar,

    I try example. Its work. But in context of my application i see error. And i use all necessary .js files.


    tremi
    Member

    I use this widget in context of emberJs application. And i want to know what can call this error.

    error details:

    Uncaught TypeError: Cannot read property ‘createInstance’ of undefined jqxcore.js:195
    (anonymous function) jqxcore.js:195
    e.extend.each jquery-1.7.2.min.js:469
    e.fn.e.each jquery-1.7.2.min.js:332
    a.jqx.jqxWidget.a.fn.(anonymous function) jqxcore.js:169
    a.extend.createInstance jqxscrollbar.js:7
    (anonymous function) jqxcore.js:196
    e.extend.each jquery-1.7.2.min.js:469
    e.fn.e.each jquery-1.7.2.min.js:332
    a.jqx.jqxWidget.a.fn.(anonymous function) jqxcore.js:169
    a.extend.createInstance jqxlistbox.js:7
    (anonymous function) jqxcore.js:196
    e.extend.each jquery-1.7.2.min.js:469
    e.fn.e.each jquery-1.7.2.min.js:332
    a.jqx.jqxWidget.a.fn.(anonymous function) jqxcore.js:169
    (anonymous function) DashboardController.js:54
    f.Callbacks.o jquery-1.7.2.min.js:581
    f.Callbacks.p.add jquery-1.7.2.min.js:589
    e.fn.e.ready jquery-1.7.2.min.js:334
    Astrum.dashboardController.Ember.ArrayController.create.alert DashboardController.js:37
    ActionHelper.registerAction.ActionHelper.registeredActions.(anonymous function).handler ember-1.0.pre.js:19458
    Ember.EventDispatcher.Ember.Object.extend.setupHandler ember-1.0.pre.js:11250
    f.event.dispatch jquery-1.7.2.min.js:1180
    f.event.add.h.handle.i

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