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

"EnableEmptyListItem" with RadComboBox

3 Answers 48 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Jacek
Top achievements
Rank 1
Jacek asked on 15 Nov 2013, 10:19 AM
How to implement "EnableEmptyListItem" functionalityn in RadComboBox, just like in dropdown included with RadGrid?

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 15 Nov 2013, 12:32 PM
Hi Jacek,

You can set the EmptyMessage property of the RadComboBox.

ASPX:
<telerik:RadComboBox ID="RadComboBox1" runat="server"  EmptyMessage="..Select.."  . . . .>
</telerik:RadComboBox>

Thanks,
Princy
0
Jacek
Top achievements
Rank 1
answered on 15 Nov 2013, 12:47 PM
Hey, Princy,

answer is not so simple, because cb is connected to database and user should be able to update value with "null".
Now I am using below method, but I was trying to find something similar to RadGrid DropDown "EnableEmptyListItem" .

<telerik:RadComboBox ID="cb1" Runat="server" DataSourceID="ds1" DataTextField="CODE" DataValueField="ID" AppendDataBoundItems="True" >
                        <Items>
                            <telerik:RadComboBoxItem runat="server" Text="..." Value="null" />
                        </Items>
                    </telerik:RadComboBox>
0
Nencho
Telerik team
answered on 20 Nov 2013, 09:02 AM
Hello Jacek,

I would suggest you to use the Default Item of the RadComboBox. Here you could find our documentation article regarding the usage of the Default Item. Please note, that it could be implemented only in a readonly RadComboBox scenario.

Regards,
Nencho
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
ComboBox
Asked by
Jacek
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Jacek
Top achievements
Rank 1
Nencho
Telerik team
Share this question
or