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

radcombobox selectedvalue problem

3 Answers 960 Views
ComboBox and ListBox (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
murat2912
Top achievements
Rank 1
murat2912 asked on 28 May 2007, 09:33 AM

i have a radcombobox which i set items design time.when i want to select an item by value it does not work.

my code : 

cmbCallerType.SelectedValue = 1;

how can i select a combobox item by its value.please help.




 

3 Answers, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 28 May 2007, 04:30 PM
Hi murat2912,

The SelectedValue property could only be used if you have a data source and the ValueMember property is set. If you add items to the Items collection at design-time, take a look at the following article on how to select an item: http://www.telerik.com/support/kb/article/b454K-tma-b454T-ckk-b454c-ckk.aspx

If you have any further questions, do not hesitate to write back.

 
All the best,
Georgi
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Ramzan Pukhraj
Top achievements
Rank 1
answered on 19 Mar 2010, 02:13 PM
Please active above link I am facing same issue
thanks
0
Victor
Telerik team
answered on 24 Mar 2010, 04:11 PM
Hello Ramzan Pukhraj,

If you are not using data binding you cannot use the SelectedValue property. You must use SelectedIndex.

Note: the link is not active any more, because the information from the KB article has been moved to the documentation.
 

Best wishes,
Victor
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
murat2912
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Ramzan Pukhraj
Top achievements
Rank 1
Victor
Telerik team
Share this question
or