jQWidgets Forums
Forum Replies Created
-
Author
-
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
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’ },]
});
}September 4, 2012 at 10:58 am in reply to: Cannot read property ‘createInstance’. Cannot read property ‘createInstance’. #7412Hi Dimitar,
I try example. Its work. But in context of my application i see error. And i use all necessary .js files.
September 4, 2012 at 10:40 am in reply to: Cannot read property ‘createInstance’. Cannot read property ‘createInstance’. #7409I 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 -
AuthorPosts