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

Combobox Binding Null value

2 Answers 205 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Teoman
Top achievements
Rank 1
Teoman asked on 21 Dec 2010, 11:43 AM
hi,

i am binding combobox with ef.when i run the app 1st value is selected..how can bind it with null value.i want to show emptymessage string in runtime.

i tried
if(!ispostback)
combo.selectedindex=-1 ;

but its not working.

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 21 Dec 2010, 12:30 PM
Hello Teoman,


Set the AllowCustomText property of  RadComboBox to "True". If you do not want to edit the input filed, then set the input field as readonly from client side.
RadComboBox EmptyMessage



-Shinu.
0
Teoman
Top achievements
Rank 1
answered on 21 Dec 2010, 11:39 PM
Thank you shinu.Its working..
Tags
ComboBox
Asked by
Teoman
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Teoman
Top achievements
Rank 1
Share this question
or