how can i do this

5 posts, 0 answers
  1. Asfz
    Asfz avatar
    8 posts
    Member since:
    Oct 2012

    Posted 26 Dec 2012 Link to this post

    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
  2. Asfz
    Asfz avatar
    8 posts
    Member since:
    Oct 2012

    Posted 27 Dec 2012 Link to this post

    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";
        }
    }
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 28 Dec 2012 Link to this post

    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.
  5. Asfz
    Asfz avatar
    8 posts
    Member since:
    Oct 2012

    Posted 28 Dec 2012 Link to this post

    Thank you very much :)
  6. Plamen
    Admin
    Plamen avatar
    132 posts

    Posted 02 Jan 2013 Link to this post

    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.
Back to Top
UI for WinForms is Visual Studio 2017 Ready