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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:





144884 May 27,2019 03:51 PM UTC Jun 17,2019 10:07 AM UTC JavaScript - EJ 2 2
Tags: Grid
Mini Dev
Asked On May 27, 2019 03:51 PM UTC

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.


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

function mySelectRow(args) {

Attachment: Capture_8024dd37.zip

Thavasianand Sankaranarayanan [Syncfusion]
Replied On 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.  
Thavasianand S. 

Thavasianand Sankaranarayanan [Syncfusion]
Replied On 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. 
Thavasianand S. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon