jQWidgets Forums
jQuery UI Widgets › Forums › Grid › Beforeprocessing is not firing in jqxGrid.
This topic contains 6 replies, has 3 voices, and was last updated by Peter Stoev 11 years, 4 months ago.
-
Author
-
Hi Sir,
In my this code
var source =
{
root: ‘Rows’,
cache: false,
beforeprocessing: function (data) {
alert(‘slls’);
},
localdata: {},
datatype: “Array”,
cache: false,
datafields: [
{ name: ‘IS_DELETED’, type: ‘bool’ },
{ name: ‘ICON’, type: ‘string’ },
{ name: ‘OBJ_RID’, type: ‘int’ },
{ name: ‘ID_NMBR’, type: ‘string’ },
{ name: ‘CLS_LBL’, type: ‘string’ },
{ name: ‘STS_COD’, type: ‘string’ },
{ name: ‘STT_NM’, type: ‘string’ },
{ name: ‘TYT_1’, type: ‘string’ },
{ name: ‘CHG_INFO’, type: ‘string’ },
{ name: ‘EFF_TS’, type: ‘date’ },
{ name: ‘OBJ_VER’, type: ‘string’ },
{ name: ‘OWNR_NM’, type: ‘string’ },
{ name: ‘OWNR_RID’, type: ‘int’ },
{ name: ‘IconText’, type: ‘string’ },
{ name: ‘STT_COLOR’, type: ‘string’ },
{ name: ‘CLS_NM’, type: ‘string’ },
{ name: ‘MBY_NM’, type: ‘string’ },
{ name: ‘MBY_TS’, type: ‘date’ },
{ name: ‘FILE_SZ’, type: ‘string’ },
{ name: ‘PAR_FLDR_RID’, type: ‘int’ }]
}
dataAdapter = new $.jqx.dataAdapter(source);I am using beforeprocessing but beforeprocessing is not firing.
Thanks with advance
Ajay k.
Hi Ajay ,
datatype: “Array” is not supported, it should be “array” or “local”. beforeprocessing is called for Remote data sources, not for local.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHi Sir ,
After using both “array” or “local” but Beforeprocessing is not working.
Hey Peter,
I also wanted to point out that there isn’t documentation regarding the
beforeprocessing
callback at http://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxdataadapter/jquery-data-adapter.htm or http://www.jqwidgets.com/jquery-widgets-demo/documentation/jqxdataadapter/jqxdataadapter-api.htmCheers,
– Joe
Hi jgornick,
beforeprocessing is not a method of jqxDataAdapter. That is why you will not find documentation about it on the dataAdapter’s web page.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comPeter, what does it belong to? I am using it in the source definition for the data adapter.
Hi jgornick,
The dataAdapter’s method is called beforeLoadComplete.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.