I am new to silverlight as well as in MVVM. I am using Silverlight 5 with MVVM Light toolkit.
The Binding of my usercontrol is applied from a View and want to send this Binding as a ConverterParameter to Converter.
Thanks in advance for your help.
I think you can't do it because of ConverterParameter is not DependencyProperty.
My advice is pass something another as value of parameter.
Related
Does anyone have code or know how to create an asp.net combobox with LoadOnDemand functionality?
You can always use ASP.NET AJAX Web services to stream the data, then populate the drop down with the items by adding items to the select element.
Check out this resource: http://www.asp.net/ajax/tutorials/understanding-asp-net-ajax-web-services
HTH.
I think this link would look good for you...
http://forums.asp.net/t/1503727.aspx
or alternatively, you may have a look at the ASP.Net AutoCompleteExtender for such a functionality. Sample here...
http://www.asp.net/AJAX/AjaxControlToolkit/Samples/AutoComplete/AutoComplete.aspx
is there any way to fill a controll type System.Web.UI.WebControls.Menu with data from database if i use ASP.Net MVC?
If yes how can i do this?
Fill? Probably.
Use effectively? Probably not.
WebForm controls are built around the page lifecycle and viewstate. MVC has neither of those.
You could accomplish something similar by using a Partial View for your menu and create a ViewModel to populate it - just populate the ViewModel with your data from the DB. But otherwise Jfar is correct.
I'll get some links if I can - currently on my phone. Hope this helps some.
I was wondering if there is a tool / framework or something similar that would allow me to populate a class' properties with the items from the FORM posted values?
Rather than doing
class.ID = Response.Form["ID"];
etc
I currently use automapper for tranforming from some objects to another..
Maybe its possible to do this?
Any ideas?
EDIT
To confirm the technology is winform (ASP.NET) not MVC.
In MVC this is built in. Put in a class in your Controllers Action parameters and it will be implicit.
Guess you might be using .NET forms though?
I am new to ASP.NET MVC and I want to know your opinion about what is the best way to display some data from database using a <table>... an ASP.NET control or a jqGrid?
In which situation must each of them be used?
I appreciate any tips. Thanks.
If I understand correctly, the MVC model doesn't support the server-side event handling of standard asp.net controls, so I'd say that the jquery grid is definitely the best option.
Asp.net controls cannot be used in asp.net mvc.
The best way is to create a ViewModel classes and declare View as strongly typed.
I could continue but unfortunately don't know what exactly do you need.
Do you mean ASP.NET Controls or ASP.NET MVC Controls?
ASP.NET Server Controls should not be used in this framework... or rather, you should not use anything that relies on postbacks and/or viewstate. There are tricks to get some to work, but YMMV.
If the control is an ASP.NET MVC Control, that's a different story, and it will work ok.
JQuery controls also work since they are javascript controls.
use the MvcContrib grid. it is working fine
Is there any reason why there isnt a radiobutton list helper in the core MVC beta? There's a dropdownlist, but no radiobuttonlist.
I know that I can easily create an extension method to do surely this is a core thing?
its in the mvc futures you can dowload on codeplex. but i believe it has bugs.
I think it was removed for the sake of simplification, instead you can just use a foreach loop.