Esempio n. 1
0
 /// <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 = JqGridColumnSearchTypes.Text;
 }
Esempio n. 3
0
 /// <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;
 }
Esempio n. 4
0
 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());
 }
Esempio n. 5
0
 internal static void SetColumnSearchOptions(this ModelMetadata metadata, JqGridColumnSearchOptions searchOptions)
 {
     metadata.AdditionalValues.Add(_searchOptionsKey, searchOptions);
 }
 internal static void SetColumnSearchOptions(this ModelMetadata metadata, JqGridColumnSearchOptions searchOptions)
 {
     metadata.AdditionalValues.Add(_searchOptionsKey, searchOptions);
 }