feathersui / feathersui-starling

User interface components for Starling Framework and Adobe AIR
https://feathersui.com/learn/as3-starling/
Other
915 stars 386 forks source link

DataGrid selectedIndex does not change when sorting columns? #1709

Closed martinrossil closed 6 years ago

martinrossil commented 6 years ago

Hi Josh :)

I've created a DataGrid with your test dataProvider data and custom Header / Cell Renderers.

DataGrid looks like this:

datagrid

I select index 2 like this:

datagridselected

I now click the Item Header so the DataGrid sorts the Columns like this:

datagridselectedsameindex

The selected index is still 2.

Is this the correct behavior or should the selectedIndex change to 0?

Thanx a million for this awesome project, I couldn't have build my apps without it! :)

joshtynjala commented 6 years ago

Good catch. Thanks!

martinrossil commented 6 years ago

That was a fast response! :)

I'm glad I could help! :)

martinrossil commented 6 years ago

It works perfectly!

Thanks Josh :)