/// <summary> /// Initializes a new instance of the JqGridColumnSearchableAttribute class. /// </summary> /// <param name="searchable">If this column can be searched</param> public JqGridColumnSearchableAttribute(bool searchable) : base() { Searchable = searchable; SearchOptions = new JqGridColumnSearchOptions(); SearchType = JqGridColumnSearchTypes.Text; }
/// <summary> /// Initializes a new instance of the JqGridColumnSearchableAttribute class. /// </summary> /// <param name="searchable">If this column can be searched</param> public JqGridColumnSearchableAttribute(bool searchable) : base() { Searchable = searchable; SearchOptions = new JqGridColumnSearchOptions(); SearchType = JqGridOptionsDefaults.ColumnModel.SearchType; }
internal static bool AreDefault(this JqGridColumnSearchOptions searchOptions) { return((searchOptions.ClearSearch == JqGridOptionsDefaults.ColumnModel.Searching.ClearSearch) && (searchOptions.SearchHidden == JqGridOptionsDefaults.ColumnModel.Searching.SearchHidden) && (searchOptions.SearchOperators == JqGridOptionsDefaults.ColumnModel.Searching.SearchOperators) && (searchOptions as JqGridColumnElementOptions).AreDefault()); }
internal static void SetColumnSearchOptions(this ModelMetadata metadata, JqGridColumnSearchOptions searchOptions) { metadata.AdditionalValues.Add(_searchOptionsKey, searchOptions); }