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
close icon

SelectedRowIndex doesn´t work

Hy guys,

Using EJ2, VS2017, MVC5...

I am trying to select the first row in a grid just after loading the page. I tried to do it as follow:

None of rows is selected by using .SelectRowIndex() as shown in the picture before.

So I made a test to select first row by clicking a button:

Once the page is loaded the code doesn't work even clicking the button many times. Just after I click on the grid the code starts working (it does select first row by clicking the button!) even when focus isn't in grid...

I need to have first row selected on page load. What am I doing wrong?

Thanks


1 Reply

MS Madhu Sudhanan P Syncfusion Team January 10, 2019 08:56 AM UTC

Hi Vanderlei, 

Thanks for contacting Syncfusion support. 

We are unable to reproduce the reported problem and it is working as expected at our end. Please share details such as product version, script version and any other information you might find useful to analyze at our end. For your reference we have created below sample please find the same. 


Regards, 
Madhu Sudhanan P 


Loader.
Live Chat Icon For mobile
Up arrow icon