Questions tagged [knockout-binding-handlers]

22 questions
3
votes
0 answers

Update chosen-select knockout binding whenever changes are made to another knockout binding

I have the following scenario: I have a table with to multiple select input boxes (chosen.jquery). And binding handler... …
smr5
  • 2,593
  • 6
  • 39
  • 66
1
vote
1 answer

knockout optionsText / optionsValue bindings won't work

Why does this binding fail with a "value not found" exception? The options array's data is this: ko.observableArray ([ {key: 'foo', value: '1'}, {key:…
Justin Grant
  • 44,807
  • 15
  • 124
  • 208
0
votes
1 answer

Why did changing this formatting function in this way, cause the Knockout binding to start working?

I have an element on a page, like this: And the function that calculates it I first wrote like this: self.FormattedCountOfPeople = ko.computed(function () { …
Caius Jard
  • 72,509
  • 5
  • 49
  • 80
0
votes
2 answers

knockout toggle/expand the text on click of text

Binding data into html table using knockout. One of the column has large text 200 length.. and UI just got scroll long. So just want to show, first 20 length chars and click of, ... it should expand or collapse the text. so just created a template…
dsi
  • 3,199
  • 12
  • 59
  • 102
0
votes
1 answer

How can I disable/enable a drop down embedded in a table mapped to a knockout observable array

I'd like to disable/enable a drop down embedded in a table in a form until a particular value is selected in the predecessor drop down. Here's what I tried that doesn't seem to work:
Suraj Nair
  • 561
  • 1
  • 8
  • 27
0
votes
1 answer

How to refresh the list in KnockoutJs after it is loaded first time?

I am displaying data list as shown below:
//render data raw here... I am new to ko and looking to refresh this list without reloading the page, is this something possible with…
0
votes
2 answers

Symfony Knockout: Custom Binding Handler cannot listen to the binding handler

On my symfony 3 project I made a form that I want to submit via ajax using knockout.js. But for some it makes the browser to redirect into the action instead of doing via ajax. The form that I want to submit with ajax on a file named…
Dimitrios Desyllas
  • 9,082
  • 15
  • 74
  • 164
0
votes
1 answer

Passing an unknown function in a knockout binding (foreach) - is it possible?

For a simple example, lets say this is my repeater:
I want whoever is using this code to be able to pass in a function of…
naspinski
  • 34,020
  • 36
  • 111
  • 167
0
votes
1 answer

How can a Knockout binding be applied to the element?

I would like to dynamically set the font-size on the root element using a custom Knockout bindinghandler which does a calculation based on the width of the browser window. When I tried to apply the binding, nothing seemed to happen, so I tried to…
connexo
  • 53,704
  • 14
  • 91
  • 128
0
votes
1 answer

KnockoutClassBindingProvider: How to perform a foreach binding

I see the basic example on github but I can't get it to work with my code. I should add that I'm using durandal. How do I get the bindings to work? Am I doing anything wrong? Input.js define(['knockout'], function (ko) { var ctor = function…
christo8989
  • 6,442
  • 5
  • 37
  • 43
1
2