A view model or viewpoints framework is a framework which defines a coherent set of views to be used in the construction of an architecture. A view is a representation of a whole system from the perspective of a related set of concerns.
0
votes
1answer
18 views
How to get object bound to DataGridRow in Xaml?
There is DataGrid with ItemsSource as ObservableCollection. ParticipantViewModel having property named ExpenseType, Currency etc. For some specific expense types participant can change currency and ...
0
votes
2answers
44 views
LINQ left join only works in the ActionResult
I'm trying to get up to speed with MVC, linq, razor, etc. Some things are working and others I just hit dead ends that really discourage me. This is the first one I haven't been able to work out. ...
1
vote
2answers
54 views
MVC Views - Can't access variable passed from controller to View
I've been seeing examples like the 3rd code block in this answer whereas the ViewModel's members are being accessed via model.Member, however I have NEVER been able to use the lowercase model in any ...
0
votes
1answer
47 views
Externally update knockout JS viewmodel
In Brief : I need to replace an entire object inside my viewmodel which is created through the knockout mapping plugin. How do I do this? This should in-turn update the controls bound to that ...
0
votes
3answers
35 views
How page specific should a viewmodel in MVC be?
I've understood that a viewmodel in MVC is supposed to reflect data on a single page rather than objects in the model. But should the viewmodel correspond to the data you want to show on that page or ...
1
vote
3answers
41 views
send a ViewModel which contains a list with a Html.BeginForm (MVC 4)
My viewmodel contains a integer list, the problem I have is that when I send my modified form viewmodel, it is always equal to null.
My ViewModel :
public class testViewModel
{
public ...
1
vote
1answer
37 views
Knockout.js: Separating ViewModel logic from the Model
In a video tutorial on the Knockout.js homepage, the presenter sets up a simple example in which the ViewModel contains an observableArray property containing instances of a custom object (a "friend" ...
0
votes
1answer
30 views
Correct and proper binding of a control/UIElement visibility to Property MVVM C# WPF
I'm quite new to MVVM, and I've been constructing my ViewModels. I have a ViewModel which contains an ICommand, which is then bound to in my View by a command button. The ICommand causes a procedure ...
0
votes
1answer
51 views
How to pass my view model to a user to main view model?
I made a main window that displays various user controls in a content control. In this window, I have the user controls and their accompanying view models in the XAML as DataTemplate Resources. This ...
1
vote
1answer
31 views
Calling a constructor on custom view model changes output type to JSON
I'm developing a WebAPI service and have been confronted with a curious problem. When calling a ViewModel with a constructor why is the return type changed to JSON from XML?
Code from controller;
// ...
0
votes
1answer
61 views
Kendo UI Filter is empty
I want to use Kendo UI grid with filter option in APS.NET MVC.
In my example I use database as datasource and a student table
When I use student class as
public ActionResult Index()
{
...
0
votes
1answer
21 views
Knockout Avoid ko.computed active listening
how can i avoid height [ ko.computed] repeatedly run when i put a mouse over ?
[ mouseAreHoverFotoBanner ]
When a read something from ui, all ko.computed are automatically executed...
Code sample [ ...
0
votes
0answers
26 views
Scaffolding with ViewModel and Database Context
I am challenging with some difficulties in MVC3. Actually, I have a Solution entails three projects inside, namely, Model; dedicated for EF Code First and its POCOs, MVC-WebProject, and ...
0
votes
2answers
22 views
Binding between UserControl and MainWindow issue
I'm missing something in this binding because it doesn't work. This is for learning purposes, if you see how this can be improved please tell me. But besides that I'm also interested in know why this ...
0
votes
3answers
21 views
display knockout viewmodel child elements elsewhere
I have the following viewmodel defined:
function BookCartViewModel() {
this.Books = ko.observableArray([]);
this.Categories = ko.observableArray([]);
}
var Book = function (data) {
this.ISBN = ...