Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataType.Date
Message
From
30/08/2012 12:02:46
 
General information
Forum:
ASP.NET
Category:
MVC
Title:
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01551951
Message ID:
01552003
Views:
41
Date calendar: Use the JQueryUI calendar.

Columns: I'm not sure what you're asking. Are the options in the second drop down filtered based on the selection of the first?

>Hi everybody,
>
>What is the easiest way to always associate date type in the Model with ability to pick the date from the calendar in UI? I see that there is annotation
>
>[DataType(DataType.Date)], but the EditorFor for it in the MVC3 doesn't seem smart enough (or may be it's not designed this way) to pick up a Calendar.
>
>What is the solution you use in your projects for this problem?
>
>Another question - I have an object that has references to two other objects (e.g. Engagements have references to Client object and Course object).
>
>What is the best way to limit selection of columns for the drop downs? Say, I can define two new classes in the Model folder for ClientMin and CourseMin (so we would only have two columns), but what should I do next?
>
>Can I, for example, use this syntax:
>
>@Html.DropDownList("clientId", new SelectList((ClientMin)Model.Clients, "Id", "Name"))
>
>E.g. can I box to the new type and will LINQ be smart enough to figure out I only need two columns?
>
>Thanks in advance.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform