示例#1
0
        internal static string GetAutoCompleteParams(AutoCompleteBehaviourPropertyBag autoCompleteProperty)
        {
            StringBuilder json = new StringBuilder();

            if (autoCompleteProperty != null)
            {
                json.AppendFormat(@"{{""MinCharRequired"": {0}, ""MaxResultCount"": {1}, ""OrderBy"": ""{2}"", ""SearchType"": ""{3}"", ""ActionURL"": ""{4}""}}",
                    autoCompleteProperty.MinCharRequired,
                    autoCompleteProperty.MaxResultCount,
                    autoCompleteProperty.OrderBy.ToString(),
                    autoCompleteProperty.SearchType.ToString(),
                    autoCompleteProperty.ActionURL);
            }

            return json.ToString();
        }
示例#2
0
        internal static string GetAutoCompleteParams(AutoCompleteBehaviourPropertyBag autoCompleteProperty)
        {
            StringBuilder json = new StringBuilder();

            if (autoCompleteProperty != null)
            {
                json.AppendFormat(@"{{""MinCharRequired"": {0}, ""MaxResultCount"": {1}, ""OrderBy"": ""{2}"", ""SearchType"": ""{3}"", ""ActionURL"": ""{4}""}}",
                                  autoCompleteProperty.MinCharRequired,
                                  autoCompleteProperty.MaxResultCount,
                                  autoCompleteProperty.OrderBy.ToString(),
                                  autoCompleteProperty.SearchType.ToString(),
                                  autoCompleteProperty.ActionURL);
            }

            return(json.ToString());
        }