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

PageLoad RadComboBox 's select

1 Answer 41 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Liu Yan
Top achievements
Rank 1
Liu Yan asked on 16 Dec 2008, 09:09 AM
Hi,
When binding Telerik RadComboBox to a SqlDataSource,the RadComboBox is defaulting back to in index 1 ("Select One").
However, I hope it is no select. How to setting?

Thx

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 16 Dec 2008, 10:08 AM
Liu Yan,

I guess, you want to select a particular item from the RadComboBox item on loading RadComboBox. It is possible to select particular item in RadComboBox by setting the SelectedIndex. Please try the code snippet below in order to set the desired item as selected.

CS:
protected void RadComboBox_DataBound(object sender, EventArgs e)  
{  
    RadComboBox1.SelectedIndex = 3; //set the index that want to set as selected  

Thanks,
Princy.
Tags
ComboBox
Asked by
Liu Yan
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or