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

[Solved] ComboBox - Need empty string when bound to DB result set

1 Answer 115 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
mohammed
Top achievements
Rank 1
mohammed asked on 25 Dec 2009, 12:19 PM
WHat is the best solution to define a combo box value as optional when bounded to database view result set?

Right now ComboBox is attached to view result set and by default on page launch, first item in combo is selected. User is unable to pass null/empty value for this field.

Thanks,
Ali.

1 Answer, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 28 Dec 2009, 09:59 AM
Hi mohammed,

You can use the Text or EmptyMessage property of the RadComboBox combined with AllowCustomText='true'. Example:

<telerik:RadComboBox runat="server" ID="RadComboBox1" EmptyMessage="OpenRadComboBox" AllowCustomText="true">


Regards,
Genady Sergeev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
ComboBox
Asked by
mohammed
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Share this question
or