I am using Knockout.js to build a client-side view model. In my view model I would like to expose some functions that can be bound to elements in the page (typical MVVM model). I only want these functions to be called in response to a click event fro...
I have two select controls.  One is dependent on the other. For a simple example, let's assume the first displays a list of cities, while the other displays a list of streets in each city.  When the page initially loads, the select control displa...
I have two components: A panel and a custom text field. The panel has a viewmodel and I want to bind a value (called testData) from that viewmodel to a property (called test) of the custom text field. That works fine ...basically. But when the test p...
I bound multiple ko viewmodels to different panels in the same page, but when the viewmodels have properties with the same name they seem to lose their binding to their own viewModel like:  var Panel1ViewModel = function Panel1ViewModel() {     var s...
Here's a much simplified example of what I'm trying to do with knockoutjs:  <!DOCTYPE HTML> <html>     <head>         <title>test</title>         <script type="text/javascript" src="https://github....
I use WebView to show data, the data gets augmented via JS function.  It works fine until the device gets rotated.  Using ViewModel to keep the page data and restore it after a config change seemed to be the right idea but I ran into problems, the pa...
I would like to implement knockout functionality to an already existing page. Therefore I want to manipulate with the ViewModel data from existing script. I have mocked up an example but it doesn't work correctly.   A ViewModel is correctly bound...
Is it possible to change a property value from a ViewModel using javascript?  For example:  <script type="text/javascript">         @Model.PageNumber = 2; </script>...
I am having an issue saving changes back to my observable viewmodel using KnockoutJS.  To keep this simple I will just show the basics....My viewmodel has a class called EmployeeSkill, which has two properties and the EmployeeSkillsViewModel is an ar...
I using two view models, mainViewModel and filterViewModel in my page, where filterViewModel is instanced by mainViewModel  function mainViewModel() {     this.data   = ko.observableArray();     this.filter = new filterViewModel(); }  function filter...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.