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(); }
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()); }