153 questions
0
votes
0
answers
217
views
How To Prevent Insecure Deserialization In WCF that occurs when untrusted data is used to abuse the logic Service?
I have WCF service coded using visual studio and C# that contains one method
public interface IMyService
{
[OperationContract]
SendDataResponse SendData(SendDataRequest Request);
}
the data ...
0
votes
0
answers
176
views
WCF SOAP Service Gzip encoding with Custom Binding
Need help in sending a request which is for WCF service. The service has Custom Binding ( The request is Binary encoded).
Initially i was getting the HTTP/1.1 415 Cannot process the message because ...
0
votes
1
answer
440
views
How to add transform algorithm ("enveloped-signature")
I am stuck with a call to soap service which needs "enveloped-signature" as transform algorithm. And i am getting "xml-exc-c14n#". I am using custom binding to initialize the ...
1
vote
1
answer
5k
views
Perform WCF call in .Net Core with custom binding (authenticationMode="MutualCertificate")
Currently we are facing some issues when calling a WCF service in .net core (2.1).
Because .net core doesn't support the System.Servicemodel binding in the web.config we are trying to create this ...
1
vote
1
answer
191
views
How to avoid cert validation on every service call with a WCF custom binding and a custom validator
I have a WCF servcie set up with custom binding and a custom cert validator.
THe cert validator is defined as follows. It will be expanded later, but is just doing a basic verification currently.
...
6
votes
1
answer
2k
views
Asp.Net Core 2.0 WCF Client CustomBinding PlatformNotSupportedException: BuildChannelFactoryCore is not supported
I need to be able to send authorization in my Client using custom bindings in Asp.Net Core 2.0. It works in Asp.net 4.6.1 and doesn't work in Core 2.2. I am trying to connect to a Workday Public Web ...
1
vote
0
answers
657
views
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: //...
1
vote
1
answer
100
views
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....
0
votes
1
answer
799
views
how to add bindingExtensions in webconfig?
i just wanna add bindingExtensions , i dont know what should i write in type attribute when add bindingExtensions. this is my config :
<system.serviceModel>
<extensions>
<...
0
votes
1
answer
929
views
Custom knockout binding to display error messages
I am currently using virtual elements to display validation errors (there can be more than 1 per path).
<div data-bind="foreach: validationErrors">
<!-- ko if: path == 'title' &&...
3
votes
0
answers
81
views
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 ...
0
votes
1
answer
817
views
MvvmCross binding to Error property of the TextInputLayout
I'm trying to simplify data validation for one activity which has plenty of controls to be entered (about 10). Every edittext control has a unique validation error so I decided to do with supported by ...
1
vote
1
answer
670
views
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 ...
1
vote
3
answers
119
views
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 ...
2
votes
0
answers
165
views
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.
...
2
votes
1
answer
314
views
Knockoutjs Radio Button Group Custom Binding Not Updating on Selection
I'm trying to create a custom binding in knockout that functions like the options default binding handler but uses radio buttons instead of a dropdown.
Adding an item to the array will notify the ...
1
vote
0
answers
159
views
.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:
...
1
vote
0
answers
1k
views
Rewrite WCF binding from app.config to code
I try rewrite WCF custom binding from app.config to code.
App.config
<customBinding>
<binding name="cb">
<security defaultAlgorithmSuite="Default"
...
2
votes
2
answers
4k
views
Knockoutjs valueHasMutated not working correctly
Hopefully this will be a quick one for a knockout guru....
I'm writing a couple of custom bindings to help me translate a UI using a custom translation engine in the project I'm working on.
One is ...
2
votes
1
answer
276
views
Knockout custom binding for bootstrap select not updating viewmodel "selectedCategories/selectedCategory"
I am creating a knockout js custom binding that will allow me to use data-binding with bootstrap multiselect. I need it to work for single <select>'s and also multiselects <select multiple="...
0
votes
0
answers
71
views
How to invoke a method when all the custom bindings are applied in knockoutjs?
I am working on KnockoutJS with jQuery.
I need to apply custom binding say myBinding on multiple views.
I have a case where multiple views are bound with myBinding, a JS method need to be called ...
0
votes
1
answer
467
views
SSL Configuration for WCF REST Service with Custom Bindings
I have a WCF REST service that has to accept a raw input stream from a client. In order to receive the raw stream, I'm using a custom binding in my web.config file. The service works fine if I set it ...
0
votes
2
answers
353
views
show underlying value of input on focus knockout custom binding
I have created (please excuse the mess - just hacking it together at the moment!) the following binding handler in knockout
The desired functionality is that if a field is numeric then it will be ...
0
votes
2
answers
731
views
How to update custom binding on button click?
With the click of a button, I want to update a d3js plot based on the values of two select elements. If I understand it right, simply calling the valueAccessor should fire off the update function, ...
0
votes
1
answer
1k
views
Knockout custom binding not updating
Please check what I am doing wrong.
The update part of my custom bindinghandler does not executes when I create a control in javascript. I have an Add function that create a row in a table. Controls ...
2
votes
1
answer
320
views
GoogleCharts with KnockoutJS custom binding only draws first chart but not the rest
I have been looking for a solution to this problem but could not find anywhere. Therefore I am requesting you guys here.
I am trying to bind GoogleBarChart with KnockoutJS model view. All Binding ...
2
votes
2
answers
162
views
Custom binding(?) that adds some standard Knockout bindings to child nodes
I want to implement using Knockout something easily reusable (probably, custom binding) that could apply mix of standard bindings: the foreach binding to a tbody node and another standard bindings (...
1
vote
2
answers
906
views
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 ...
1
vote
2
answers
965
views
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 ...
0
votes
1
answer
67
views
knockout custom select binder with update function
I am trying to develop a custom select binder but I am not able to understand how to develop the update functionality. Currently this is what I have done. I want custom binder to handle this type of ...
0
votes
1
answer
41
views
Using custom knockoutjs select binding with standard select bindings as well
I am trying to combine custom knockoutjs binding with a standard binding. Although I have been able to find a related solution
ko.bindingHandlers.parentAreaComboBox = {
initialised: false,
init: ...
1
vote
1
answer
2k
views
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 ...
4
votes
1
answer
944
views
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 ...
1
vote
2
answers
1k
views
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?
...
2
votes
2
answers
984
views
Custom knockout binding not updating underlying observable
I have a textbox bound to a custom binding. For the sake of an example all it does it wrap the control with a bordered div. I then pass the bound observable to the value binding but it is not updating ...
-1
votes
1
answer
344
views
How can I remove $data, $parent etc. from the DOM (KnockoutJS)
I have just started using knockout so if some stuff is ugly please do tell me!
One thing I really want to do is get rid of $parent, $data etc. from the DOM if possible.
I have seen ways to do this ...
0
votes
2
answers
102
views
improve efficiency on knockout custom binding (firing too often)
Attached is a snippet for a custom binding handler for some buttons designed to act as a radio group.
The problem I have is that when I click on a button it fires the update 6 times.
I guess I need ...
1
vote
1
answer
249
views
How can I make the <dd> items of a <dl> to be initially hidden via knockout's custom databinding?
I've created a <dl> where the <dd> can be slideDown/slideUp by a click on the corresponding <dt> by using knockout's databinding. I derived my solution from the tutorial about ...
0
votes
1
answer
1k
views
Currency formatting with pureComputed
I want to format numbers in a comma separated fashion. I have found this jsfiddle which caters to my requirement. I need to add another pureComputed value for my vm, and I tried it with this way by ...
0
votes
0
answers
282
views
Custom binding handlers making validation message show on Add ? Knockout
I been working on custom binding handlers to bind formatted value to my text-box and i'm pretty successful with that . Here i am adding a validation (required:true,number:true) on the same text-box i'...
1
vote
1
answer
1k
views
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 ...
1
vote
1
answer
97
views
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
...
1
vote
2
answers
163
views
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 ...
2
votes
1
answer
4k
views
Knockout string format pattern
In WPF there is a binding that I use a lot;
<GridViewColumn DisplayMemberBinding="{Binding Path=Price, StringFormat=Now {0:c}!}"/>
Is there a good way to achieve a similar binding in knockout? ...
3
votes
1
answer
274
views
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 ...
6
votes
1
answer
8k
views
extjs 5 : make a data binding for component's custom property
i have a component that extended from the filefield,
and i added a custom property 'serverPath' to it ,and also i have defined the getter and setter .
code :
Ext.define('MyApp.ux.Field.File',{
...
4
votes
2
answers
5k
views
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 ...
0
votes
1
answer
1k
views
How to call a knockout function with bootstrap-switch.js binding?
I'm trying to show my data in a table but instead of checkbox show something fancy like
http://www.bootstrap-switch.org/
I've managed to build my table and handle the plugin using this binding
ko....
2
votes
1
answer
1k
views
Update Value In textbox using Knockout + Typeahead Custom Binding
I am making an application using knockout + typeahead that will show suggestion list of entered character matches the list.
All thing working fine.
Only problem is when I select the item from list it ...
1
vote
1
answer
1k
views
Skip first Update on knockout custom binding
I am creating a custom binding, named "myhandler".
I need nothing in the initialize phase, and I do not want the update function to be executed the first time. The update member of ko.bindingHandlers, ...