This project has moved and is read-only. For the latest updates, please go here.

Wpf Extended toolkit CheckComboBox (Adding select All option at start position)

Jan 29, 2013 at 3:28 AM
Edited Feb 5, 2013 at 5:41 AM
In my WPF project we are using WPF Extended toolkit version 1.8.0.
Here i have taken CheckComboBox in XAML Like Below.
    <xctk:checkcombobox height="20" name="LocaleSelector" Margin="226,12,26,429" ItemSelectionChanged="LocaleSelector_ItemSelectionChanged"> </xctk:checkcombobox>  
Then in my code view we are binding to checkcombobox with the database using below code.
public void BindComboBox()
        {
            try
            {
                SqlConnection conn = new SqlConnection(str);
                SqlDataAdapter da = new SqlDataAdapter("select Department_Name from Dept", conn);
                DataSet ds = new DataSet();
                da.Fill(ds, "dept");
                Selector sel = new Selector();
                LocaleSelector.Items.Add("All");
               if (ds.Tables["dept"].Rows.Count &gt; 0)
                {
                    foreach (DataRow dr in ds.Tables["dept"].Rows)
                    {
                     LocaleSelector.Items.Add(dr["Department_Name"]);
                        
                    }
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }  
This code is working fine. but we need that when user selects "All" from the checkcombobox then we want disable or make readonly or something else for remaining items from the checkcombobox and vice-versa. Please provide me your valuble ideas to implement this.
Feb 4, 2013 at 9:10 AM
Any Updates on this Please
Feb 25, 2013 at 3:58 AM
Dear Experts,

Kindly post your ideas please