Hi Thanh,
Greetings from Syncfusion support.
We would like to inform you that, we have deprecated the GetSelectedRows method in our latest release versions. We suggest you to use the GetSelectedRecords method instead, to fetch the selected records in Grid.
Query : also get 0 item in array GetSelectedRowIndexes.
And also we tried using the GetSelectedRowIndexes method in the RowSelected event handler of Grid. But we could not face the reported problem from our side. The GetSelectedRowIndexes returns all the selected row indexes in Grid.
We are attaching the sample in 18.3.0.41 which we have tried for your reference. Please download the sample form the link below,
Please refer the above attached sample and if you are still facing difficulties, then the following details would be helpful for us to proceed further and provide you a solution as early as possible.
- Share the sample which you have tried from your side.
- Share the exact scenario or proper replication procedure.
- Share the detailed codes regarding where you are calling the Grid selection methods.
- Share your complete Grid rendering codes.
- Share the details of the exception you are facing.
The provided information will help us analyze the problem, and provide you a solution as early as possible.
Regards,
Renjith Singh Rajendran