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

[Solved] Data Annotation Question

1 Answer 23 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.
Tim
Top achievements
Rank 1
Tim asked on 12 Jun 2011, 10:13 PM
Hello,

I am creating a MVC 3 website and I am using a Grid (MVC Extensions) that is being passed in a View Model where all pertinent information is using Data Annotations. My question is I want to make one field Hidden (as in asp:Hidden) so that I can hold some data without showing it on the page. Is there a way to do that? I looked in the DataType enum but did not see a "hidden" data type, but I did see a Custom datatype but I can't find any information on how to use it.  I have done searches online as well as off (with the .chm) and can't find any information about it.

Any help will be greatly appreciated.

Thanks,
Tim

1 Answer, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 13 Jun 2011, 07:04 AM
Hi Tim,

 You can check the HiddenInputAttribute.

Kind 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
Tags
General Discussions
Asked by
Tim
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or