示例#1
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));
        }
示例#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 AutoCompleteMultipleValuesSettingsBuilderTests()
 {
     settings = new AutoCompleteMultipleValuesSettings();
     builder = new AutoCompleteMultipleValuesSettingsBuilder(settings);
 }