using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Telerik.WebControls; 

namespace CustomDictionaries
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                RadComboBox1.SelectedIndex = 0; 
                RadSpell1.CustomDictionarySuffix = "-" + RadComboBox1.Text;
                //RadSpell1.WordIgnoreOptions = WordIgnoreOptions.UPPERCASE | WordIgnoreOptions.WordsWithCapitalLetters; 
                //RadSpell1.FragmentIgnoreOptions = FragmentIgnoreOptions.Urls | FragmentIgnoreOptions.EmailAddresses; 
            }
        }

        protected void RadComboBox1_SelectedIndexChanged(object o, Telerik.WebControls.RadComboBoxSelectedIndexChangedEventArgs e)
        {
            RadSpell1.CustomDictionarySuffix = "-" + RadComboBox1.Text;
        }
    }
}
