public AutoComplete(ViewContext viewContext, IClientSideObjectWriterFactory clientSideObjectWriterFactory, IUrlGenerator urlGenerator)
            : base(viewContext, clientSideObjectWriterFactory)
        {
            ScriptFileNames.AddRange(new[] { "telerik.common.js", "telerik.list.js", "telerik.autocomplete.js" });

            UrlGenerator = urlGenerator;

            ClientEvents = new DropDownClientEvents();
            DataBinding = new AutoCompleteDataBindingConfiguration();
            DropDownHtmlAttributes = new RouteValueDictionary();
            Filtering = new AutoCompleteFilterSettings();

            Items = new List<string>();

            Multiple = new AutoCompleteMultipleValuesSettings();

            Effects = new Effects();
            defaultEffects.Each(el => Effects.Container.Add(el));
        }
Example #2
0
        public AutoComplete(ViewContext viewContext, IClientSideObjectWriterFactory clientSideObjectWriterFactory, IUrlGenerator urlGenerator)
            : base(viewContext, clientSideObjectWriterFactory)
        {
            ScriptFileNames.AddRange(new[] { "telerik.common.js", "telerik.list.js", "telerik.autocomplete.js" });

            UrlGenerator = urlGenerator;

            ClientEvents           = new DropDownClientEvents();
            DataBinding            = new AutoCompleteDataBindingConfiguration();
            DropDownHtmlAttributes = new RouteValueDictionary();
            Filtering = new AutoCompleteFilterSettings();

            Items = new List <string>();

            Multiple = new AutoCompleteMultipleValuesSettings();

            Effects = new Effects();
            defaultEffects.Each(el => Effects.Container.Add(el));
            Enabled = true;
            Encoded = true;
        }
 public AutoCompleteFilterSettingsBuilderTests()
 {
     settings = new AutoCompleteFilterSettings();
     builder = new AutoCompleteFilterSettingsBuilder(settings);
 }