views:

19

answers:

1

Hi,

I have a advanced datagrid and displying the 10 records. but when loading the data, the first record should be selected. Can you please help me how to do it.

Thanks, Ravi

+1  A: 

If the dataProvider is updated dynamically, just call grid.selectedIndex = 0; after updating it. Otherwise, call it from the creationComplete handler.

Amarghosh
@Thanks Amar: Yes, Dataprovider is updated dynamically. so i need to call gridId.selectIndex=0; and when data selected, charts has to be updated based on the selected data.pls forward the sample code lines, if have.
Ravi K Chowdary
@Ravi `gridId.selectIndex=0;` is all you need. Call it after you set the data provider.
Amarghosh