Class JqGridColumnSearchableAttribute
Specifies the searching options for column
Inherited Members
Namespace: Lib.AspNetCore.Mvc.JqGrid.DataAnnotations
Assembly: Lib.AspNetCore.Mvc.JqGrid.DataAnnotations.dll
Syntax
public class JqGridColumnSearchableAttribute : JqGridColumnElementAttribute
Constructors
JqGridColumnSearchableAttribute()
Initializes a new instance of the JqGridColumnSearchableAttribute class.
Declaration
public JqGridColumnSearchableAttribute()
JqGridColumnSearchableAttribute(Boolean)
Initializes a new instance of the JqGridColumnSearchableAttribute class.
Declaration
public JqGridColumnSearchableAttribute(bool searchable)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | searchable | If this column can be searched |
JqGridColumnSearchableAttribute(String)
Initializes a new instance of the JqGridColumnSearchableAttribute class.
Declaration
public JqGridColumnSearchableAttribute(string route)
Parameters
Type | Name | Description |
---|---|---|
System.String | route | The name of the route to be used to generate URL to get the AJAX data for the select element (if type is JqGridColumnSearchTypes.Select) or jQuery UI Autocomplete widget (if type is JqGridColumnSearchTypes.Autocomplete). |
JqGridColumnSearchableAttribute(String, String)
Initializes a new instance of the JqGridColumnSearchableAttribute class.
Declaration
public JqGridColumnSearchableAttribute(string action, string controller)
Parameters
Type | Name | Description |
---|---|---|
System.String | action | The name of the action method to get the AJAX data for the select element (if type is JqGridColumnSearchTypes.Select) or jQuery UI Autocomplete widget (if type is JqGridColumnSearchTypes.Autocomplete). |
System.String | controller | The name of the controller to get the AJAX data for the select element (if type is JqGridColumnSearchTypes.Select) or jQuery UI Autocomplete widget (if type is JqGridColumnSearchTypes.Autocomplete). |
JqGridColumnSearchableAttribute(Type, String)
Initializes a new instance of the JqGridColumnSearchableAttribute class.
Declaration
public JqGridColumnSearchableAttribute(Type valueProviderType, string valueProviderMethodName)
Parameters
Type | Name | Description |
---|---|---|
Type | valueProviderType | The type of class which contains a method which will provide data for select element (if type is JqGridColumnSearchTypes.Select). This class must have public parameterless constructor. |
System.String | valueProviderMethodName | The name of method which will provide data for select element (if type is JqGridColumnSearchTypes.Select). This method must return an object which implements IDictionary<string, string>. |
Properties
ClearSearch
Gets or sets the value which defines if Clear ("X") button is available at the end of search field in jqGrid filter toolbar.
Declaration
public bool ClearSearch { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ElementOptions
Gets the options for jqGrid editable or searchable column element.
Declaration
protected override JqGridColumnElementOptions ElementOptions { get; }
Property Value
Type | Description |
---|---|
JqGridColumnElementOptions |
Overrides
Searchable
Gets the value defining if this column can be searched.
Declaration
public bool Searchable { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
SearchHidden
Gets or sets the value which defines if hidden column can be searched.
Declaration
public bool SearchHidden { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
SearchOperators
Gets or sets the available search operators for the column.
Declaration
public JqGridSearchOperators SearchOperators { get; set; }
Property Value
Type | Description |
---|---|
JqGridSearchOperators |
SearchOptions
Gets options for jqGrid searchable column.
Declaration
public JqGridColumnSearchOptions SearchOptions { get; }
Property Value
Type | Description |
---|---|
JqGridColumnSearchOptions |
SearchRequired
Gets or sets if the value is required while searching.
Declaration
public bool SearchRequired { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
SearchType
Gets or sets the type of the search field (default JqGridColumnSearchTypes.Text).
Declaration
public JqGridColumnSearchTypes SearchType { get; set; }
Property Value
Type | Description |
---|---|
JqGridColumnSearchTypes |