How to set a defult selected row when page created.

<div class="contractgrid">
        <VueGrid
          :dataSource="contractList"
          :columns="contractcolumns"
          :selectedRowIndex=1
          @selectChange="contractGridSelectChangeHandler"
          @inputChange="contractGridInputChanged"
        />
      </div>

:selectedRowIndex=1 not work.

Thanks

1 Reply

AG Ajith Govarthan Syncfusion Team May 21, 2020 04:02 PM UTC

Hi Fan, 

Greetings from Syncfusion. 

Based on the attached code example we have prepared sample and found that everything works fine at our end. We have also noticed that in you code example you have used custom Vue component and used the SelectedRowIndex property. So to validate the issue at our end please share the below details. 

  1. Share Complete grid code and custom component code example.
  2. Share Syncfusion package version.

For your convenience we have shared the documentation so please refer the docuementation for your reference. 


Regards, 
Ajith G. 



Loader.
Up arrow icon