
Arteta Sam
Top achievements
Rank 1
Arteta Sam
asked on 26 Mar 2011, 11:28 AM
Hi all,
i have a question regarding radComboBox. Now i have 1 radcombobox that bind with data. But i cant display my empty msg in radcombobox by using EmptyMessage="--Select--". The data display directly in my radcombobox.
Have can i solve this problem?
Any help is appreciated.
Thank you.
regards,
Nasri
i have a question regarding radComboBox. Now i have 1 radcombobox that bind with data. But i cant display my empty msg in radcombobox by using EmptyMessage="--Select--". The data display directly in my radcombobox.
Have can i solve this problem?
Any help is appreciated.
Thank you.
regards,
Nasri
6 Answers, 1 is accepted
0

Shinu
Top achievements
Rank 2
answered on 28 Mar 2011, 07:07 AM
Hello Nasri,
Please make sure that you have set the RadComboBox property AllowCustomText to true.
Thanks,
Shinu.
Please make sure that you have set the RadComboBox property AllowCustomText to true.
Thanks,
Shinu.
0

Arteta Sam
Top achievements
Rank 1
answered on 30 Mar 2011, 06:25 AM
Thank you for your reply. But now i using
telerik:GridDropDownColumn, i cany find the properties that allow custom text.
How can i do this?
Thank you.
regards,
nasri
0

Shinu
Top achievements
Rank 2
answered on 30 Mar 2011, 07:07 AM
Hello Nasri,
Try the following code snippet to achieve your requirment.
C#:
Thanks,
Shinu.
Try the following code snippet to achieve your requirment.
C#:
protected
void
RadGrid1_ItemCreated(
object
sender, GridItemEventArgs e)
{
if
(e.Item
is
GridEditableItem && e.Item.IsInEditMode)
//Check for Edit mode. Here its InPlace.
{
GridEditableItem editItem = (GridEditableItem)e.Item;
RadComboBox combo = (RadComboBox)editItem[
"ColumnUniqueName"
].Controls[0];
combo.AllowCustomText =
true
;
}
}
Thanks,
Shinu.
0

Arteta Sam
Top achievements
Rank 1
answered on 30 Mar 2011, 07:40 AM
Dear shinu,
Thank you for your quick reply. However, this is not the result that i want. wat i want is display empty msg in my gidcolumn drop down list. Mean default the drop down list value is empty msg, not the fisrt row data . can u help me?
Thank you.
regards,
nasri
Thank you for your quick reply. However, this is not the result that i want. wat i want is display empty msg in my gidcolumn drop down list. Mean default the drop down list value is empty msg, not the fisrt row data . can u help me?
Thank you.
regards,
nasri
0

Shinu
Top achievements
Rank 2
answered on 31 Mar 2011, 05:54 AM
Hello Nasri,
You can set the empty message by setting the EmptyMessage to the RadCombo.
C#:
Thanks,
Shinu.
You can set the empty message by setting the EmptyMessage to the RadCombo.
C#:
if
(e.Item
is
GridEditableItem && e.Item.IsInEditMode)
//Check for Edit mode. Here its InPlace.
{
GridEditableItem editItem = (GridEditableItem)e.Item;
RadComboBox combo = (RadComboBox)editItem[
"ColumnUniqueName"
].Controls[0];
combo.AllowCustomText =
true
;
combo.EmptyMessage =
"SelectOne"
;
}
Thanks,
Shinu.
0

Arteta Sam
Top achievements
Rank 1
answered on 02 Apr 2011, 04:26 AM
Dear Shinu,
Thank you !!! you help me alot!!!
Again, thanks a lot!
regards,
Nasri
Thank you !!! you help me alot!!!
Again, thanks a lot!
regards,
Nasri