I still need to figure out which Dom element to scroll to . When I am populating the items I can store the observable of the first item that is selected, but I don't have which Dom element it was bound to.
<!-- ko foreach: viewModel.mystuff() -->
I tried
<!-- ko foreach: viewModel.mystuff() , afterRender: myfun() -->
but that seems to do nothing...
<li data-bind="attr: { id: 'item-' + id }"></li>
and get it with document.getElementById() in the js
but i'm bot sure it's ok because I think knockoutjs also generate some
ids when you bind events