Hi,
I need to bind model data to DatePicker control in ASP.NET MVC3 application.
In the examples I dont' find anything about this.
Could anyone help me?
Thank you in advance.
Mirko
Hi Mirko,
Thank you for your interest in our new jQuery product.
You can look at Editors -> Order Entry Form Sample at http://samples.infragistics.com/jquery/editors/order-entry-form. There you can see how you can use the MVC model binding with the editors helpers.
Look through the different files in the SELECT SAMPLE SOURCE FILE TO VIEW dropdown. There you can find the controller code as well in the OrderEntryFormController.cs file.
Using the editors helpers with MVC model binding is pretty easy. Just use the corresponding <Helper>For method. They are used the same way as you would use the build-in helpers, the only difference is that you need to call the Render() method in the end.
For example if you have a model with property Date of type DateTime using <%= Html.Infragistics().DatePickerFor(m => m.Date).Render() %> will populate the date picker with the date from this property. When the HTML Form is posted back to the server if your action accepts a parameter with the same type as your model you will be able to find the modified value in the same Date property.
Hope this helps,
Hello.
I am facing the same problem. and I Think your post is really useful, BUTI don't have the following package:
Infragistics.Web.Core.Framework.Mvc
How can I install/able that package?
Recently, we have bought the license for NetAdvantage 2011.1 Ultimate Version.
I have installed all the products, but I don't see the MVC Component.
Is there a way to install it? or my installation is not completed yet?
Thanks in advance
HI IccAppSupport,
If you have installed all the products you should have an assembly called Infragistics.Web.Mvc installed as well.
It should be in two versions - 2.11.1.1014 or 3.11.1.1014, depending on which version of ASP.NET MVC are you using. The last number(1014) could be different if you are using one of our Service Releases which we strongly recommend.
You should use 2.11.1.1014 for MVC2 and the other one for MVC3.
Let me know what type of project(WebSite or WebApplication) and which ViewEngine(ASPX or Razor) are you using and I can give you more details about how to use the jQuery product.
Thanks,
Hello IccAppSupport,
I have created support case in your behalf with number – “CAS-77245-KK76VC”.
You can access your case from "My IG > My Support Activity" section in our Web Site (you must Log In first).
You can use this support case to send and receive progress updates, samples and any additional information that can be helpful in resolving your issue.
Thank you for choosing Infragistics.
how can I contact the Developer Support, please?
I have more than one week trying to work with infragistics and It hasn't been impossible
Hi IccAppSupport,
I'm not sure why you don't have it in the "Add References" dialog, you can contact Developer Support for that.
You can however add it directly in you web.config placing the following line at <system.web><compilation><assemblies>.
<
Then you just need to add <%@ Import Namespace="Infragistics.Web.Mvc" %> in your view page and you will be able to use the igRating code posted above.
I am working in a WebApplication, and I am using ASPX.
and I don't have that Infragistics.Web.Mvc package.
When I try to add the reference, it doesn't appear in the options.
how can I re-install it?
Thanks In advance