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
0
votes
1 answer
Knockoutjs Custom bindig with jQueryUI Dialog
I'm trying to make a custom binding based on this code, http://jsfiddle.net/rniemeyer/WpnTU/ , Mine after a field checkbox is selected then open a jQueryUI dialog. Here is the code: http://jsfiddle.net/superjohn_2006/UFEg6/ , another question is…

John
- 37
- 5
0
votes
1 answer
KnockoutJS, WebApi, When I use custom binding, valueAccessor has no value in.
KnockoutJS with WebApi. When I tried with custom binding, I can not pass the binding data into the custom binding function.
I'm banging my head for two days now, definitely missing something here.
Any guideline, articles or sample code would be…

Winter Winter
- 173
- 2
- 11
0
votes
0 answers
How to get Header value of MenuItem from custom Binding?
I have defined RoutedCommand in my class and in XAML
Public Shared CustomCommandShowAll As New RoutedCommand
Public Shared CustomCommandFirstPage As New RoutedCommand
Public Shared CustomCommandSecondPage As New…

Selva
- 1,310
- 2
- 14
- 31
0
votes
1 answer
How to invoke web service in client which has CustomBinding endpoints?
I have WCF web service with custombinding as endpoint. I would like to invoke this web service (hosted on IIS) from my client application.
The service contract looks as below:
[ServiceContract(Namespace =…

KANAGAL RAJ
- 33
- 1
- 6
0
votes
1 answer
Knockout custom binding create function
I would like to create a knockout custom binding (so I can add a computed observable) as with this example:
var mapping = {
'children': {
create: function(options) {
return new myChildModel(options.data);
}
…

Ashraf Fayad
- 1,433
- 4
- 17
- 31
0
votes
2 answers
Create custom knockout binding with foreach rendering (for jquery mobile listview)
Using jquerymobile and knockout, I am trying to create a custom binding that looks as follows

Matthew James Davis
- 12,134
- 7
- 61
- 90
0
votes
0 answers
JQuery element custom knockout customBinding
I'm trying to make a knockout binding to a jQuery object that is capable of knowing about any changes to the dom (attributes, text, html, appending, deleting. etc).
ko.bindingHandlers.jqHtml =
init: (element, valueAccessor) ->
…

DrSammyD
- 880
- 12
- 32
0
votes
2 answers
Knockout custom binding to update observable from other observable
I have two select inputs with same options and changing value in first select should disable all previous options in second (including) selected one, and set the value of second select to first next value.
I've setup a working fiddle here.
0
votes
1 answer
Binding to observable created inside custom binding
I am trying to encapsulate the creation of an observable inside a custom binding, much like isValid of knockoutjs-validation, but without extending the binding because this property in the future will be the result of another binding that records a…

Ricardo Medeiros Penna
- 209
- 1
- 7
0
votes
1 answer
Calling the method provided in HTML in Knockout custom bindinghandler
I'm using both knockout.js and hammer.js in my current project. I created a custom binding handler for the 'tap' event in hammer.js (this should also work for other events such as hold or swipe). My problem is that in this binding handler, I want to…

Bram W.
- 1,587
- 4
- 16
- 39
0
votes
1 answer
KnockoutJS custom bindings element has no children?
I'm working on a custom binding that will fetch existing values and insert it into the viewmodel. However, I hit a snag where the element provided in ko.bindingHandlers doesn't seem to have any child elements.
Is this how things work in KnockoutJS…

Dzulqarnain Nasir
- 2,150
- 1
- 19
- 16
0
votes
1 answer
knockout js bootstrap combobox custom binding
I have a question regarding using bootstrap combobox plugin in conjunction with knockout (and mvc).
I have a situation where I am using out of box MVC html helpers like Dropdownlisfor, textboxfor, etc in my template. I am using Knockout to bind a…

Krishna Veeramachaneni
- 2,131
- 3
- 18
- 24
0
votes
2 answers
WCF customBinding over HTTPS
I have a situation where i need to sign a soap request w/ a X509 certificate for consumption by a java web service. Thru the magic of WCF we were able to get the envelope formed properly and all looks great over standard http. However, once we…

Nat P
- 9
- 3
0
votes
1 answer
How to compress before encrypting message in a custom binding?
I have followed the example at microsoft http://msdn.microsoft.com/en-us/library/ms751458.aspx regarding creation of a custom binding to compress messages. However, I want to have my traffic encrypted at the same time. This works great, however the…

dennis_ler
- 659
- 1
- 9
- 36
0
votes
2 answers
WCF CustomBing exception - AddressingNone does not support adding WS-Addressing headers
I keep getting the following exception when I use my pragmatically created CustomBinding.
Addressing Version 'AddressingNone (http://schemas.microsoft.com/ws/2005/05/addressing/none)' does not support adding WS-Addressing headers.
Is there any way…

Tawani
- 11,067
- 20
- 82
- 106