ASP.NET: Caption for Text Editors (v14.1 release)

ASP.NET Team Blog
01 July 2014

Check out the new Caption property that saves you time from adding extra label controls:

DevExpress ASP.NET Data Editors - Caption Property in v14.1

The new Caption property, in the v14.1 release, lets you set the editor's prompt text for the DevExpress ASP.NET Text Editors. And it's most helpful to use this property when you need to align the controls in a toolbar style layout.

In the image above, we've used the new Caption property to align a label and combo box controls inside of our Reports toolbar. Using this new approach, we can align them easily without any additional markup.

Customize Caption Appearance

You can use the following properties to customize the appearance of the caption:

  • Position – specifies the position of a caption related to the editor.
  • HorizontalAlign, VerticalAlign – specify the horizontal and vertical alignment of a caption.
  • ShowColon – specifies whether the colon sign is displayed after caption text.
  • RequiredMark – specifies text displayed after a caption when the editor value is required.
  • OptionalMark – specifies text displayed after a caption when the editor value is optional.
  • RequiredMarkDisplayMode – specifies which mark should be displayed after a caption.

Try this functionality now with our online Data Editors - Caption ASP.NET WebForms demo.

ASP.NET WebForms and MVC

The Caption property is available for both ASP.NET platforms: ASP.NET WebForms and ASP.NET MVC.

Form Layout

If you have a form then I recommend using the DevExpress ASP.NET Form Layout control that helps you create forms within minutes:

Create Web Forms in minutes with the new ASP.NET Form Layout control

Your Next Great .NET App Starts Here

Year after year, .NET developers such as yourself consistently vote DevExpress products #1.

Experience the DevExpress difference for yourself and download a free 30-day trial of all our products today:

Free DevExpress Products - Get Your Copy Today

The following free DevExpress product offers remain available. Should you have any questions about the free offers below, please submit a ticket via the DevExpress Support Center at your convenience. We'll be happy to follow-up.
No Comments

Please login or register to post comments.