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