Extra calling of databound,rowselected and rowdeelected events

Hi,

I am using Grid. Here is my html code:-

<ejs-grid #RoleGrid id='RoleGrid' [dataSource]='RoleData' rowHeight='38'
                        height='300' gridLines="Both" (rowSelected)='roleRowSelected($event)' (rowDeselected)='roleRowDeSelected($event)'
                        [selectionSettings]='selectionOptions' (dataBound)='dataBound($event)'>

At the databound event, I am using following code:-

this.RoleGrid.selectRows(this.SelectedRowIndexs); 

after that sequence of event calling is:-
rowselected
databound(unwanted call)
rowselected(unwanted call)
rowdeselected(unwanted call)


Please do needful because rowdeselected event is unselecting the last selected row.

Namita

2 Replies 1 reply marked as answer

PG Praveenkumar Gajendiran Syncfusion Team November 2, 2020 02:58 PM UTC

Hi Namita,

Thanks for contacting Syncfusion support. 

We have validated your query and we are able to reproduce the same problem from our end. So we have considered “RowDeselected  event is fired unwantedly while calling selectRows method in dataBound event” as a defect and logged a report for the same. Thank you for taking the time to report this issue and helping us improve our product. At Syncfusion, we are committed to fixing all validated defects (subject to technological feasibility and Product Development Life Cycle ) and will include the defect fix in our patch release scheduled on November 18, 2020. We appreciate your patience until then. 
 
You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link. 


Regards,
Praveenkumar G. 




PG Praveenkumar Gajendiran Syncfusion Team November 18, 2020 02:26 PM UTC

Hi Namita,

Thanks for your valuable patience.

We checked your reported issue in the local sample. But we are not able to reproduce the reported issue and everything works fine. Please check the below sample for your reference.

Sample: https://www.syncfusion.com/downloads/support/forum/159209/ze/AN627C~1-1183332003.zip 


Note : We have found that issue only exists in the online stackblizt sample, it may be due to some conflict in stackblitz only. If you want to resolve the issue in stackblizt sample, please use the below code in the dataBound event. 

dataBound() { 
    this.grid.getDataModule().isQueryInvokedFromData = true; 
    this.grid.selectRows(this.selectedRowIndexs); 
  } 

Could you please check with your application and share the details if you have faced any issue. 


Regards,
Praveenkumar G  


Marked as answer
Loader.
Up arrow icon