No announcements
Found 674805 threads
-
0 Votes
SelectList in ViewModel, Dropdown in View, DropDownListFor
User197322208 posted this.CompanySizes = new SelectList(companySizes); replace ...Answered | 3 Replies | 127 Views | Created by Anonymous - Monday, February 1, 2010 12:45 AM | Last reply by Anonymous - Monday, February 1, 2010 3:34 AM -
0 Votes
Selected value in SelectList for DropDownListFor
n.OrderTemplates, new SelectList(Model.OrderTemplates, "OrderTemplateId", "OrderTemplateName", 1), "Please select an order template") When using ...Answered | 1 Replies | 38 Views | Created by Anonymous - Friday, May 9, 2014 6:02 AM | Last reply by Anonymous - Friday, May 9, 2014 6:16 AM -
1 Votes
Multiple Views one ViewModel
Hi Magnus, In my version, I do create a new ViewModel at each new View, even if it is not what I want do to.Answered | 5 Replies | 2196 Views | Created by Muris - Saturday, May 31, 2014 2:24 PM | Last reply by Muris - Sunday, June 1, 2014 2:26 PM -
0 Votes
One ViewModel for multiple views
You should keep any presentation logic in the view model and move any business logic to the model.Answered | 4 Replies | 13852 Views | Created by Doraemon_3 - Saturday, August 10, 2013 5:18 PM | Last reply by Magnus (MM8) - Tuesday, August 20, 2013 10:49 AM -
0 Votes
ViewModel First with nested ViewModels and nested Views
Hi jbanderson, I've used view first, viewmodel first and all sorts of variations I prefer view first.Answered | 2 Replies | 5824 Views | Created by jbanderson - Wednesday, December 9, 2015 4:04 AM | Last reply by Andy ONeill - Friday, December 11, 2015 10:25 AM -
4 Votes
How to bind the viewModel to view
The problem is because you're using mvvm the view and viewmodel are decoupled.Answered | 6 Replies | 4899 Views | Created by Jhon J - Monday, January 6, 2014 4:02 PM | Last reply by Andy ONeill - Tuesday, January 7, 2014 11:32 AM -
4 Votes
Model View ViewModel question
Hello, I´m playing around with XAML and MVVM, and have a question about the wiring between the model and the viewmodel: If I have a model that updates ...Answered | 4 Replies | 5040 Views | Created by Johan20D - Saturday, October 23, 2010 10:29 AM | Last reply by Johan20D - Saturday, October 23, 2010 2:37 PM -
2 Votes
Help connecting VIew to ViewModel
We are setting the DataContext on the UserControl to be your ViewModel, so it now has access to all the properties that you add to the ViewModel.Answered | 7 Replies | 1517 Views | Created by Sal_S - Wednesday, December 19, 2012 3:49 AM | Last reply by bytemarq - Friday, December 21, 2012 6:38 AM -
2 Votes
Supplying viewmodel to view constructed with container
You don't have to worry about resetting any DataContext because the View's DataContext is already set the the ViewModel instance.Answered | 8 Replies | 4166 Views | Created by pretzelb - Thursday, August 4, 2011 9:36 PM | Last reply by pretzelb - Tuesday, August 9, 2011 3:07 PM -
0 Votes
How to use SelectList in viewmodels?
m.address.AddressLine1) @Html.EditorFor(m => m.address.AddressLine2) @Html.EditorFor(m => m.address.City) @Html.DropDownListFor(m => m.address.StateAbbr, Model.ListOfStates, ...Answered | 5 Replies | 390 Views | Created by Anonymous - Saturday, April 6, 2013 10:00 PM | Last reply by Anonymous - Thursday, April 11, 2013 10:18 PM -
0 Votes
SelectList and dropdown value
This is usually the case when you return a ViewModel from the View that encapsulates the Model.Answered | 5 Replies | 30 Views | Created by Anonymous - Thursday, November 18, 2010 6:41 AM | Last reply by Anonymous - Friday, November 19, 2010 9:41 AM -
0 Votes
DropDownListFor bound to ViewModel
User-848409960 posted Dropdown list and Select list's are always pain..Unanswered | 8 Replies | 96 Views | Created by Anonymous - Sunday, June 2, 2013 4:45 AM | Last reply by Anonymous - Tuesday, June 4, 2013 8:18 PM -
0 Votes
Model - View - ViewModel Tutorials
WindowsClient.net WPF Training Videos MVVM Tutorials WPF Apps With The Model-View-ViewModelAnswered | 8 Replies | 1600 Views | Created by Sorriso Storto - Monday, September 8, 2014 10:04 PM | Last reply by darnold924 - Tuesday, September 9, 2014 8:57 PM -
2 Votes
how access the viewmodel of a new view
The DataContext property of the view is your viewmodel.Answered | 5 Replies | 492 Views | Created by fabianus76 - Tuesday, March 1, 2016 2:10 PM | Last reply by fabianus76 - Wednesday, March 2, 2016 6:14 AM -
0 Votes
Workflow, View and ViewModel... how to communicate?
All this bookmark stuff is really just thread synch... and to interact with the VM or the View one has to switch threads, marshal, etc.Answered | 5 Replies | 7110 Views | Created by smatthews1999 - Sunday, November 1, 2009 3:31 PM | Last reply by Jurgen Willis - Tuesday, November 10, 2009 4:00 AM -
0 Votes
dropdownlistfor with selectList from controler
model.Role, ViewBag.rollList as List<SelectListItem>) With this, you won't lose your 'Selected' property... just remember that if your model.Role comes with value, will override your ...Answered | 2 Replies | 73 Views | Created by Anonymous - Thursday, November 16, 2017 2:44 PM | Last reply by Anonymous - Thursday, November 16, 2017 6:55 PM -
0 Votes
Unclear on how view's datacontext gets set to viewmodel
what if this is the main view?Answered | 4 Replies | 6157 Views | Created by nkartheek - Friday, November 26, 2010 1:10 AM | Last reply by Richard.Haggard - Monday, August 15, 2016 12:17 AM -
3 Votes
Split View from ViewModel & Model with WPF application
The view, viewmodel and model go on the client.Answered | 11 Replies | 1697 Views | Created by Langalia VIpul - Wednesday, December 16, 2015 5:55 AM | Last reply by Andy ONeill - Friday, December 25, 2015 10:27 AM -
0 Votes
DropdownlistFor
I was wondering how do I maintain the values in my selectlist of a dropdownlistfor after doing a postback?Unanswered | 5 Replies | 59 Views | Created by Anonymous - Thursday, November 23, 2017 11:49 PM | Last reply by Anonymous - Friday, November 24, 2017 6:54 PM -
0 Votes
dropdown boxes in mvc views
I want to create an edit view where I can select the keyaccountmanager from a drop down list of staff members, with the staff member's name being used as the list text but ...Answered | 2 Replies | 2021 Views | Created by john at acs - Tuesday, July 17, 2012 12:14 PM | Last reply by Bob Wu-MT - Wednesday, July 18, 2012 6:31 AM - Items 1 to 20 of 674805 Next ›
No announcements