KnockoutJS: Extending KnockOut JS's built-in bindings to allow a lot of flexibility to encapsulate sophisticated behaviors in an easy-to-reuse way.
Questions tagged [custom-binding]
156 questions
1
vote
0 answers
How can I resolve «Failed to lookup a channel to receive an incoming message. Either the endpoint or the SOAP action was not found» With CustomBinding
I tried to consome a WCF service configured with CustomBinding and SSL/TLC Certificate but i Get everytime a System.ServiceModel.EndpointNotFoundException «There was no listening endpoint on https: //localhost/Helloword/HelloWord.svc that can accept…

kaisfarza
- 73
- 1
- 7
1
vote
1 answer
knockout global custom binding
The requirement is to format the amounts displayed on all the pages. This is my code for custom binding.
(function () {
function refresh(element, valueAccessor) {
var val = ko.utils.unwrapObservable(valueAccessor());
…

eranjali08
- 77
- 10
1
vote
1 answer
valueAccessor() returning function signature instead of value during custom binding creation
I'm brand new to Knockout.js and have been following a tutorial. However, my code is not working as expected, because in my custom binding createDecimal, valueAccessor() is returning the signature of the function instead of the actual value.
I'm…

Govind Rai
- 14,406
- 9
- 72
- 83
1
vote
3 answers
Issue when assigning values to Custom Model Binder
I am getting
An exception of type 'System.NullReferenceException' occurred in *****Tests.dll but was not handled in user code
Additional information: Object reference not set to an instance of an object.
How to correctly assign values to the…

Harsha W
- 3,162
- 5
- 43
- 77
1
vote
0 answers
.net c# WebChannelFactory keepAliveEnabled=false with webHttpBehavior
I create WebChannelFactory. I need set KeepAlive=false.
I found only one solution use CustomBinding. and set property keepAliveEnabled to false.
I use custom behavior for my factory also.
Code:
static CustomBinding GetBinding(MySettings…

Виталий Чепурко
- 11
- 2
1
vote
0 answers
Rewrite WCF binding from app.config to code
I try rewrite WCF custom binding from app.config to code.
App.config

rco
- 325
- 4
- 13
1
vote
2 answers
Multiple Protection Levels does not work in WCF
I am facing a problem in the security part of WCF.
The problem is: Partial encryption is not working for the message payload. It either encrypts the payload completely or keeps unencrypted the whole payload when I change the ProtectionLevel at the…

Shameer Kunjumohamed
- 277
- 3
- 14
1
vote
2 answers
Possible to fire custom binding update except initially?
Let's say I have this:
ko.bindingHandlers.test= {
update: function (element, valueAccessor) {
alert("Test");
}
};
The alert fires every time an observable is changed, but also initally when the binding is first evaluated. How can I…

HischT
- 933
- 1
- 9
- 26
1
vote
2 answers
Knockout.js custom bootstrap datepicker binding plus value binding
I need to attach a bootstrap datepicker to two input fields that also need a value binding since I need to be able to dynamically set the value of the input according to changes in my observable.
So far, the binding works only one way: When I pick…

connexo
- 53,704
- 14
- 91
- 128
1
vote
1 answer
Using Knockout custom binding utilizing input mask disables Knockout Validation
I'd like to use both Knockout Validation and Knockout custom bindings with input masks (http://robinherbots.github.io/jquery.inputmask/). Example: money input box, I don't want the user to be able to enter any alphabetic characters at all in the…

Csaba Toth
- 10,021
- 5
- 75
- 121
1
vote
2 answers
Knockout custom binding get value before update
I have a custom binding, that has implemented update.
I would like to know what the value was before update was called. I can not see that it is passed into any of the parameters. Have i missed it?
ko.bindingHandlers.ticker= {
update:…

4imble
- 13,979
- 15
- 70
- 125
1
vote
1 answer
How can I make the items of a to be initially hidden via knockout's custom databinding?
- to be initially hidden via knockout's custom databinding?
I've created a
- where the
- can be slideDown/slideUp by a click on the corresponding
- by using knockout's databinding. I derived my solution from the tutorial about creating custom bindings. So far I managed to wire everything so that I…

t3chb0t
- 16,340
- 13
- 78
- 118
1
vote
1 answer
Knockout: model not updated in internet explorer
We have a weird issue that's happening only in Internet Explorer. The feature is working on Firefox and on Chrome.
The bug can be reproduced in knockout 2.2.1 and in knockout 3.1.0.
I have spans that change them self to a textboxes when double…

billybob
- 2,859
- 6
- 35
- 55
1
vote
1 answer
Knockout : Bindings not applied to a part of a page after creating a custom binding
I have been creating a custom binding on knockout to help me create a cool pagination with a slide effect like the one on bootstrap on the carousel here http://getbootstrap.com/javascript/#carousel
For this I created a custom binding that acts like…

Devnix
- 13
- 3
1
vote
2 answers
Am I incorrectly building binding handlers?
In all of my knockout custom binding handlers, I always omit the update callback. My reasoning is that I can do all of the work I need to do inside of the init callback. In there, I can create computed's, call applyBindingsToNode (if I need) or…

Allen Rice
- 19,068
- 14
- 83
- 115