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

[Solved] Setting Text property of Combo Box no longer works in SP1

4 Answers 160 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 21 May 2008, 11:48 PM
I've created some Rad Combo Boxes in code behind and as part of that I'm setting their Text property; In the origional version of the Q1 2008 controls this worked just fine and my text was displayed in the combo box, however since upgrading to SP1 this no longer works. The Text property IS getting set, it's just not getting rendered for some reason.

Were there any changes in SP1 that might be causing this and is there a workaround?

4 Answers, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 22 May 2008, 08:06 AM
Hi Nick,

Have you set the AllowCustomText property of RadComboBox to true? If you did this and still have the problem, please open a support ticket and send us a simple project illustrating the problem and/or provide us with the definition of RadComboBox and the code you use to set its Text.


Regards,
Rosi
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Veselin Vasilev
Telerik team
answered on 22 May 2008, 09:33 AM
Hi Nick,

Also, you can use the new property EmptyMessage.

Regards,
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Nicholas
Top achievements
Rank 1
answered on 22 May 2008, 05:35 PM
If I set AllowCustomText to true, then yes it does work, but then I'm allowing custom text which isn't something we want to do. We're using a TreeView control inside the ComboBox to simulate a multi select combobox with checkboxes, so we want to be able to set the text to whatever's currently selected in the tree when the control is created, but not allow custom text or display something when there is no selection.

We're basicaly trying to do exactly what you do in the ComboBox/Tree example, just in C# rather than javascript:

comboBox.set_text(node.get_text());

http://www.telerik.com/DEMOS/ASPNET/Prometheus/TreeView/Examples/Functionality/TreeViewComboBox/DefaultCS.aspx
0
Veselin Vasilev
Telerik team
answered on 26 May 2008, 12:14 PM
Hi Nicholas,

You can set the MarkFirstMatch property to True, instead of AllowCustomText.
This way the users will be able to enter only letters corresponding to combo's items.
Now the Text property will be displayed.

Kind regards,
Veskoni
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ComboBox
Asked by
Nick
Top achievements
Rank 1
Answers by
Rosi
Telerik team
Veselin Vasilev
Telerik team
Nicholas
Top achievements
Rank 1
Share this question
or