problem with rowSelected event


When I select a row after the first loading, arg.data of rowSelected event contains the correct data.
But after scrolling, when I select another row, arg.data = undefined

var dataManager = ej.DataManager({
url: window.location.rel='nofollow' href + '/_GRID',
offline: loadAll,
adaptor: 'UrlAdaptor'
});

[...]

$grid.ejGrid({
dataSource: dataManager,
actionBegin: function (args) {
$.each(Object.keys(params), function () {
args.model.query.addParams(this.toString(), params[this]);
});
},
offline: false,
columns: columns,
allowReordering: true,
showColumnChooser: true,
allowResizing: true,
allowResizeToFit: true,
allowScrolling: true,
scrollSettings: { allowVirtualScrolling: true, height: height, width: 0 },
allowFiltering: true,
filterSettings: { filterType: 'menu' },
allowSearching: true,
allowSorting: true,
allowMultiSorting: true,
allowSelection: true,
selectionType: 'single',
selectedRowIndex: 1,
rowSelected: function (args) {
                        console.log(args.data);
                    }
});



1 Reply

AR Ajith R Syncfusion Team December 22, 2014 07:09 AM UTC

Hi Stefano,

 

Thanks for using Syncfusion products.

 

Query: problem with rowSelected event

 

We are able to reproduce your reported issue. We considered this “args.data is undefined in virtual scrolling with rowSelected event” as an issue and a support incident has been created under your account to track the status of this issue. Please log on to our support website to check for further updates.

 

Support Link: https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents

 

Please let us know if you have any concerns.

 

Regards,

Ajith R


Loader.
Up arrow icon