The problem arises due to the reassignment of the variable stocksto another observable. So you first do:
this.stocks = ko.observable();
And then subscribe to this observable. But later you do:
this.stocks = ko.observableArray(filteredStocks);
stocks . , .
. : http://jsfiddle.net/9nGQ9/2/
this.stocks = ko.observable();
this.stocks = ko.observableArray();
this.stocks = ko.observableArray(filteredStocks);
this.stocks(filteredStocks);