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

how can i do this

4 Answers 65 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Asfz
Top achievements
Rank 1
Asfz asked on 26 Dec 2012, 09:07 AM
i have three dropdownlist,the start 2nd and 3rd is disable
when i change the 1st,then the 2nd is enable and list data from 1st selected value
the same to 3rd.
how can i do this,i use sql server.
thanks

4 Answers, 1 is accepted

Sort by
0
Asfz
Top achievements
Rank 1
answered on 27 Dec 2012, 07:47 AM
i found some sample code,but no response.
who can help me,help to complete get value?

private void WebordersSearchProvince_SelectedIndexChanged(object sender, PositionChangedEventArgs e){
    if (WebordersSearchProvince.SelectedItem != null){
        DataSet citydr = Global.GetAreaInfo(Convert.ToInt16(?????????));
        WebordersSearchCity.DataSource = citydr.Tables[0];
        WebordersSearchCity.DisplayMember = "area_name";
        WebordersSearchCity.ValueMember = "area_id";
    }
}
0
Stefan
Telerik team
answered on 28 Dec 2012, 10:15 AM
Hi,

Thank you for writing.

The event that you have found is the right place to enter the desired logic. Attached you can find a sample application demonstrating how to achieve the desired functionality,
 
Kind regards,
Stefan
the Telerik team
Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
0
Asfz
Top achievements
Rank 1
answered on 29 Dec 2012, 02:00 AM
Thank you very much :)
0
Plamen
Telerik team
answered on 02 Jan 2013, 04:15 PM
Hi,

Do not hesitate to write back if you have further questions on the matter.

Kind regards,
Plamen
the Telerik team
Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
Tags
DropDownList
Asked by
Asfz
Top achievements
Rank 1
Answers by
Asfz
Top achievements
Rank 1
Stefan
Telerik team
Plamen
Telerik team
Share this question
or