So, I've been researching knockout, went through the tutorials on
learn.knockoutjs.com, and have looked at different examples online,
and been pretty impressed so far. As with any new technology I use, I
always like to ask the experts to determine best way possible to deal
with certain situations. I currently have a system I've been writing
to manage and maintain a cloud-based offering for my employer. The
system is designed within
ASP.NET MVC, and I've been using Javascript
and Jquery to do all of my client interaction. I really would like to
get some direction on how to implement Knockout within my situation.
Currently, I have management views that are used to maintain model
data on my backend database. There's a lot going on my client side..
essentially what I want to do with Knockout is have a gridded
interfaces that is filled by data presented by my controller. Each
item is displayed in a row, and below the grid, when a line is
selected, I would like a form(popup below my grid) to be filled with
the underlying data associated with this item, and have the ability to
modify the code here, and save back once updated (asynchronously, area
would close & clear once new item was inserted, or record was
updated), I also would like to use that same form to insert new
records upon insert request.
I'm wondering the best way to handle these things within KO: Hiding/
showing the form on different requests, clearing form values once
saved or canceled, and displaying the different buttons when needed
(Update, Cancel, Insert, Add)... What is the best way to handle an
advanced UI like this within Knockout?
Thanks for your help in advance.