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

SelectedRowIndex doesn´t work

Thread ID:





141884 Jan 9,2019 01:41 PM UTC Jan 10,2019 08:56 AM UTC ASP.NET MVC - EJ 2 1
Tags: Grid
Asked On January 9, 2019 02:34 PM UTC

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?


Madhu Sudhanan P [Syncfusion]
Replied On 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. 

Madhu Sudhanan P 


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