DevExpress ASP.NET Combo Box supports Null Text (coming soon in v2013 vol 1)

ASP.NET Team Blog
13 May 2013

Starting with the first major release for DXperience in 2013, you’ll be able to set null text for the DevExpress ASP.NET Combo box control.

What? What’s this NullText?

NullText is grayed out text inside of an editor that gives your website visitor a hint as to what they should or could input:

DevExpress ASP.NET Editors NullText

ASPx ComboBox NullText

Here’s the DevExpress ASP.NET Combo box control with the Null Text property set to "Start typing here…”:

DevExpress ASP.NET Combo Box NullText

To use this great little feature, simply set the NullText property on the control:

DevExpress ASP.NET Editors NullText Property

Or through the source code:

DevExpress ASP.NET Editors NullText - Source

Define NullText

It may seem odd to call this feature Null Text,  instead of Hint Text, Default Text, or something else. But read this definition:

The NullText property value is displayed in the edit box when the editor's edit value is set to null or System.DBNull.Value.

Then you’ll realize:

  1. Programmers were involved in this definition.
  2. Programmers are never wrong. Smile

Save time and money...

Save time and money with high quality pre-built components for ASP.NET, Windows Forms, WPF, Silverlight and VCL as well as IDE Productivity Tools and Business Application Frameworks, all backed by world-class service and support. Our technologies help you build your best, see complex software with greater clarity, increase your productivity and create stunning applications for Windows and Web in the shortest possible time.

Try a fully-functional version of DXperience for free now: http://www.devexpress.com/Downloads/NET/

4 comment(s)
James Zhong
James Zhong

Good feature!

14 May, 2013
Jens Havelberg
Jens Havelberg

for win too?

14 May, 2013
Mehul Harry (DevExpress)
Mehul Harry (DevExpress)

Jens,

I believe the DevExpress WinForms ComboBox control (part of the XtraEditors) already supports NullText:

"To provide custom display text when the editor's value is set to null, use the RepositoryItem.NullText property."

documentation.devexpress.com

documentation.devexpress.com

14 May, 2013
Vlаd
Vlаd

Wow, finally!!! :)

Good job, friends!

14 May, 2013

Please login or register to post comments.