Questions tagged [custom-binding]

KnockoutJS: Extending KnockOut JS's built-in bindings to allow a lot of flexibility to encapsulate sophisticated behaviors in an easy-to-reuse way.

156 questions
4
votes
2 answers

WCF and custom text encoding - messy business

I have a really weird WCF problem here... We're connecting to a crappy third-party web service; it was a nightmare to even get it going, we had to create a custom WCF binding since those guys decided to use "ISO-8859-1" as their text encoding…
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
4
votes
1 answer

KnockoutJS custom binding with multiple color pickers

I'm just starting out with knockoutJS and thought I would experiment by creating a little program that changes the colours of elements on a page. I'm using the jquery spectrum plugin for the color picker and have attached it to a little bootstrap…
craig_h
  • 31,871
  • 6
  • 59
  • 68
4
votes
2 answers

Dynamic currency format on input field

I would like to ask you is it possible to format dynamically input value? So when I'm entering some value it will dynamically add commas to format currency. For example I'm writing 1234 and it will be formatted to 1'234 dynamically. If I delete one…
Kosmonaft
  • 1,286
  • 2
  • 17
  • 30
4
votes
3 answers

Knockoutjs: ScrollIntoViewTrigger

i recently struggled with a problem and although i solved it for me, i'm not sure whether there aren't better solutions out there, so I'd appreciate any comments. Problem. i wanted to create a 'ScrollIntoView' binding. Since scrolling an element…
joergipoergi
  • 339
  • 3
  • 6
3
votes
0 answers

Transport level security in an intranet Silverlight 5 application

I am implementing transport level security in an intranet Silverlight 5 application. Binding used is custom netTcpBinding and on server end I have enabled security with below settings and PrincipalPermission.
Ayaz
  • 2,111
  • 4
  • 13
  • 16
3
votes
1 answer

Why isn't the PageDown Editor triggering Knockout value update when using the button bar?

I am having a problem getting the knockout model to update when a user uses the PageDown button bar to make changes to the editor text. Any typing, pasting, or cutting works fine but the button bar actions do not. I have tried adding a hook for…
Brant Olsen
  • 5,628
  • 5
  • 36
  • 53
3
votes
1 answer

Knockout checked binding

So I'm trying to use a custom knockout checkbox binding to trigger visibility on some divs in a form. I'm having a difficult time figuring out why it won't work correctly. I've gotten it to the point where the initial value gets set, but then it…
gdefilippi
  • 35
  • 6
3
votes
1 answer

ko.bindingHandlers.if.update function was removed in KnockoutJS 3.1?

I wrote a custom binding that will perform like if binding at the first, and work as visible binding on the next. ko.bindingHandlers.visibleIf = { init: function(element, valueAccessor, allBindingsAccessor, viewModel, bindingContext) { …
Fariz Azmi
  • 713
  • 1
  • 6
  • 21
3
votes
1 answer

knockout valueUpdate not working with Pagedown?

I have the following in my view: Which when typing, behaves as I'd expect. But I'm using a WMD / Pagedown editor to click a button that adds content to the field, much…
SB2055
  • 12,272
  • 32
  • 97
  • 202
3
votes
2 answers

Creating a Knockout binding handler that depends on a 'tree' of observables

I have a knockout model which has multiple observable properties: var personViewModel = { name: ko.observable('Bob'), age: ko.observable(123) }; I would like to create a custom binding which renders person view model. However, I would like…
ColinE
  • 68,894
  • 15
  • 164
  • 232
3
votes
3 answers

Chaining Knockout Custom Bindings

I have a Knockout custom binding handler that I want to call the foreach bindings functionality on within it and then call a callback function afterwards. I keep getting a "Uncaught Error: You cannot apply bindings multiple times to the same…
nobody
  • 7,803
  • 11
  • 56
  • 91
3
votes
1 answer

The CustomBinding on the ServiceEndpoint with contract 'IService1' lacks a TransportBindingElement error when trying to access wcf service

I am trying to access WCF service. But its giving me following error: The CustomBinding on the ServiceEndpoint with contract 'IService1' lacks a TransportBindingElement. Every binding must have at least one binding element that derives from…
Aishwarya Shiva
  • 3,460
  • 15
  • 58
  • 107
3
votes
1 answer

Creating a custom binding for nl2br in knockout.js

I am trying to write a custom binding to replace "/n" with "
" within a "

" element. I understand the concept more or less, but I'm stuggling to get it going. Can anyone suggest where I'm going wrong. I don't really want to use a computed…

Wellso
  • 119
  • 3
  • 12
3
votes
5 answers

kendo mvvm: how to define a custom css binding

Is it true that: (or am I missing something?) Kendo UI MVVM doesn't support css binding; If it is, how to define a custom css binding? I found an implementation here, but I only have the minified kendo js files, can anyone give a link to download…
Dean
  • 1,281
  • 3
  • 15
  • 23
2
votes
0 answers

Knockout & Plotly custom binding proper disposal

I have an application that uses Knockout and a custom binding handler for Plotly graphs. The issue I'm having is when the binding handler is disposed of, it creates a lot of detached DOM elements. Here's the binding…
RedShift
  • 287
  • 1
  • 6
  • 17
1
2
3
10 11