コード例 #1
0
        internal static string ConstructLinqFilterExpression(CoreAutoComplete autoComplete, SearchArguments args)
        {
            Guard.IsNotNull(autoComplete.DataField, "DataField", "must be set in order to perform search operations. If you get this error from search/export method, make sure you setup(initialize) the grid again prior to filtering/exporting.");
            string filterExpressionCompare = "{0} {1} \"{2}\"";

            return(GetLinqExpression(filterExpressionCompare, args, false, typeof(string)));
        }
コード例 #2
0
        public HtmlString CoreAutoComplete(CoreAutoComplete autoComplete, string id)
        {
            //IL_0016: Unknown result type (might be due to invalid IL or missing references)
            //IL_001c: Expected O, but got Unknown
            CoreAutoCompleteRenderer coreAutoCompleteRenderer = new CoreAutoCompleteRenderer();

            autoComplete.ID = id;
            return(new HtmlString(coreAutoCompleteRenderer.RenderHtml(autoComplete)));
        }
コード例 #3
0
 public string RenderHtml(CoreAutoComplete autoComplete)
 {
     _model = autoComplete;
     //if (DateTime.Now > CompiledOn.CompilationDate.AddDays(45.0))
     //{
     //	return "This is a trial version of CoreSuite for ASP.NET MVC which has expired.<br> Please, contact [email protected] for purchasing the product or for trial extension.";
     //}
     Guard.IsNotNullOrEmpty(_model.ID, "ID", "You need to set ID for this CoreAutoComplete instance.");
     if (_model.DisplayMode == AutoCompleteDisplayMode.Standalone)
     {
         return(GetStandaloneJavascript());
     }
     return(GetControlEditorJavascript());
 }