This is a migrated thread and some comments may be shown as answers.

Full Strongly-Typed Helper support?

5 Answers 48 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Shane Milton
Top achievements
Rank 2
Shane Milton asked on 26 Mar 2010, 07:42 PM
Are there plans to get full strongly-typed helper method support like MVC2 gives?

For example, take a look at the View on this demo. For the TextBox and TextArea, I can just pass the strongly-typed lamda in. However, for the DatePicker, I must both pass in a link to my data (yes, this is strong-typed) but also I must pass in a string for the Name and it must match my model's structure perfectly else I lose the ability to get the data on post (i.e. where I want the full support for the strong-type). In other words, if I have a ViewModel for my view, if I name the DatePicker incorrectly, then that field doesn't post into my ViewModel for my Controller to work with the data, and this is something that would definitely happen if I renamed a property and refactored it through code and didn't realize I had this loosely-typed string for the DatePicker's Name property referring to it as well.

Thanks!
-Shane

5 Answers, 1 is accepted

Sort by
0
Shane Milton
Top achievements
Rank 2
answered on 26 Mar 2010, 08:20 PM
Hmm, is this essentially a duplicate of this post and something that's already implemented, just not yet released?
0
Atanas Korchev
Telerik team
answered on 27 Mar 2010, 08:02 PM
Hello Shane Milton,

Yes, we have this implemented but not yet released. You can use the built attached in the previous thread.

All the best,
Atanas Korchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Andrew
Top achievements
Rank 1
answered on 03 Aug 2010, 12:28 PM
Do you have release dates for the strongly typed helper support yet ?
0
Atanas Korchev
Telerik team
answered on 03 Aug 2010, 12:37 PM
Hi Andrew,

Strongly typed helpers have been released a few months ago:

Html.Telerik().DatePickerFor(model => model.BirthDate);
Html.Telerik().NumericTextBoxFor(model => model.Quantity);

etc.

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Andrew
Top achievements
Rank 1
answered on 03 Aug 2010, 12:44 PM
Thanks for your rapid reply. It seems I am going slightly mad! I'm sure they didn't show up in intellisense 10 minutes ago (but they do now!). Cheers :-)
Tags
General Discussions
Asked by
Shane Milton
Top achievements
Rank 2
Answers by
Shane Milton
Top achievements
Rank 2
Atanas Korchev
Telerik team
Andrew
Top achievements
Rank 1
Share this question
or