示例#1
0
        public ComboBox(ViewContext viewContext, IClientSideObjectWriterFactory clientSideObjectWriterFactory, IUrlGenerator urlGenerator)
            : base(viewContext, clientSideObjectWriterFactory)
        {
            ScriptFileNames.AddRange(new[] { "telerik.common.js", "telerik.list.js", "telerik.combobox.js" });

            UrlGenerator = urlGenerator;

            ClientEvents = new DropDownClientEvents();
            DataBinding = new AutoCompleteDataBindingConfiguration();
            DropDownHtmlAttributes = new RouteValueDictionary();
            HiddenInputHtmlAttributes = new RouteValueDictionary();
            InputHtmlAttributes = new RouteValueDictionary();

            Effects = new Effects();
            defaultEffects.Each(el => Effects.Container.Add(el));

            Filtering = new ComboBoxFilterSettings();

            Items = new List<DropDownItem>();
            SelectedIndex = -1;
            Enabled = true;
            Encoded = true;
            OpenOnFocus = false;
            IgnoreCase = true;
        }
示例#2
0
        public ComboBox(ViewContext viewContext, IClientSideObjectWriterFactory clientSideObjectWriterFactory, IUrlGenerator urlGenerator)
            : base(viewContext, clientSideObjectWriterFactory)
        {
            ScriptFileNames.AddRange(new[] { "telerik.common.js", "telerik.list.js", "telerik.combobox.js" });

            UrlGenerator = urlGenerator;

            ClientEvents              = new DropDownClientEvents();
            DataBinding               = new AutoCompleteDataBindingConfiguration();
            DropDownHtmlAttributes    = new RouteValueDictionary();
            HiddenInputHtmlAttributes = new RouteValueDictionary();
            InputHtmlAttributes       = new RouteValueDictionary();

            Effects = new Effects();
            defaultEffects.Each(el => Effects.Container.Add(el));

            Filtering = new ComboBoxFilterSettings();

            Items         = new List <DropDownItem>();
            SelectedIndex = -1;
            Enabled       = true;
            Encoded       = true;
            OpenOnFocus   = false;
            IgnoreCase    = true;
        }
 public ComboBoxFilterSettingsBuilderTests()
 {
     settings = new ComboBoxFilterSettings();
     builder = new ComboBoxFilterSettingsBuilder(settings);
 }