Our tester found a bug with my search box. The search box filters a grid using observables. IE 9 and 10, and Crome adds in a x clear option, this wasn’t changing the observable, so the filter wasn’t getting cleared out. (image from SO question) <input id="searchTextBox" class="searchTextBox" type="text" maxlength="25" title="Search" placeholder="Search" data-bind="value: GridVm.FilterText, valueUpdate: 'afterkeydown', disable: GridVm.Data().length == 0" /> I posted my question and ended up ......
Since I installed the v2 update, Visual Studio has been hanging on occasion. The CPU for the process jumps to 25% and stays there and Visual Studio stops responding. I found a Microsoft Connect feedback which describes the same problem. It seems to be connected to intellisense for Knockout. There is a registry hack to turn it off, and this has worked for me. On March 13th, they report that the fix will be in VS Update 2, which is currently in CTP4 state (on March 19, 2013) with a “go-live” license.Update ......
I did a short presentation at work to show off some of the capabilities of Knockout Js. Here’s a link to the read-only code from the Cloud 9 account. https://c9.io/aligned/knock... you're looking for an in-depth tutorial, I highly recommend John Papa's Pluralsight course ......
MVVM Light has Messaging that helps keep View Models decoupled, isolated, and keep the separation of concerns, while allowing them to communicate with each other. This is a very helpful feature. One View Model can send off a message and if anyone is listening for it, they will react, otherwise nothing will happen. I now want to do the same with KnockoutJs View Models. Here are some links on how to do this: http://stackoverflow.com/qu... ......
I can pass the name of the template to the controller like this (/Templates/KnockoutTemplat... where 'radial' is the name of a view (radial.cshtml), return a partial view of that name and have Knockout put it in the template block. My Controller: public class TemplatesController : Controller{ public TemplatesViewModel viewModel { get; set; } public ActionResult KnockoutTemplate(string templateName, int? id) { this.viewModel.Id = id; return PartialView(templateName.Re... ......
I get to be a part of a project that is re-writing dashboards from a Flash implementation to all HTML5. Our lead developer liked the Wijmo gadgets (as do I), so I've been putting the gadgets to the test. At the time of this writing we are using version 2.1.6. I really like how they look and they seem to perform well. I don't like the lack of information on how to style these and some of the other behaviors. Some of the requirements are:They have to be able to re-size with the browser and have the ......