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
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.
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.