Questions tagged [knockout-3.4]

6 questions
1
vote
1 answer

fadeIn() inside Knockout's afterAdd callback

I am trying to learn the foreach binding and I can't understand why the $(element).fadeIn(500) line in the code below isn't working: ko.applyBindings({ myItems: ko.observableArray([ 'A', 'B', 'C' ]), FadeIn: function(element,…
Animesh Kumar
  • 237
  • 3
  • 11
1
vote
2 answers

In knockout Change Paging when Data is changed

In knockout I wish to change/ refresh Paging when data is changed. For example: I have a data set of 100[5 Records per Page] and I am on Page 10. Now with some more search Data is changed from 100 to 5 and I am on Page 10, but when data is changed…
AnkUser
  • 5,421
  • 2
  • 9
  • 25
1
vote
3 answers

Access 'this' within Click function

Is it possible to access $(this) and perform actions such as hide() or toggle() this div in Knockout? I'm trying to access it via jQuery. Any alternative methods within the function is appreciated. At the moment if I do this: click: function(){…
alwaysVBNET
  • 3,150
  • 8
  • 32
  • 65
0
votes
1 answer

Trigger parent ViewModel event from child change

Is there a way to allow events to be triggered on the parent view model when an observable on the child view model changes? Here's a quick example of what I'm talking about: HTML:
jay
  • 434
  • 1
  • 5
  • 25
0
votes
1 answer

Knockout binding fontawesome class

Exmaple of posted code Hello, I have a problem with binding CSS class of font-awesome into an tag. HTML:
0
votes
1 answer

Bind specific index of an observableArray to an input control

I have added a few observable objects into an observableArray: dynaobs and they look like: "dynaobs": [ { "SpecName": "reportingcurrency", "SpecValue": "EUR" }, { "SpecName": "transactionscurrency", "SpecValue":…
alwaysVBNET
  • 3,150
  • 8
  • 32
  • 65