We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Why rowSelected.args.rowIndexes has one element more than?

Good morning, I have my grid component setting in the following way:


when I selected all checkbox rowSelected event triggers mySelectRow function. The issue is that args.rowIndexes is an array with length 13 while it should be 12 because PageSize is 12.

Why?

function runGrid() {
let gridObject = new ej.grids.Grid({
dataSource: ej.data.DataUtil.parse.isJson(@Html.Raw(ViewBag.dataSourceJson)),
allowPaging: true,
allowSelection: true,
allowFiltering: true,
selectionSettings: { persistSelection: true },
columns: [
{ type: 'checkbox', width: 50 },
[...]
],
pageSettings: {
currentPage: 1.0,
pageCount: 5.0,
pageSize: 12.0
},
rowSelected: mySelectRow
});
gridObject.appendTo('#grid');


function mySelectRow(args) {
console.log(args.rowIndexes);
}
}

Attachment: Capture_8024dd37.zip

2 Replies

TS Thavasianand Sankaranarayanan Syncfusion Team May 28, 2019 07:01 AM UTC

Hi Mini,  
 
Query: “The issue is that args.rowIndexes is an array with length 13 while it should be 12  
 
We have validated the defect “When paging is enabled selectall checkbox return wrong selectedroeindex” you have initiated with us. Thank you for the taking the time to report the issue and helping us improve our product. At Syncfusion we are committed to fixing all the validated defect (subject to technological feasibility and Product Development Life Cycle) and including its fix in our subsequent release. So fix for the issue will be included in our next Patch release on 12th June 2019.   

You can track the current status of your request, review the resolution timeline and contact us for any further inquiries through this link.  
 
 

Note: To view the above feedback, kindly login into your account.    
 

Till then we appreciate your patience.  
 
 
Regards, 
Thavasianand S. 



TS Thavasianand Sankaranarayanan Syncfusion Team June 17, 2019 10:07 AM UTC

Hi Mini, 
Thanks for your patience. 
 
We are glad to announce that our latest patch release (17.1.51) has been rolled out successfully and in that release, we have added the fix for the issue When paging is enabled selectall checkbox return wrong selectedroeindex. 
 
Regards, 
Thavasianand S. 


Loader.
Live Chat Icon For mobile
Up arrow icon