Creates a filter box with fields to use for filtering information on a page.
Filters are made up of FilterFields which are the rendered controls. There are a number of pre-defined filter field controls.
These values are posted back to the form using the respective id of each control.
Id of the filter field
Text to show in the filter button
Text to show in the clear button
Place the values in cookies to auto populate on next visit to the page
Hide the filter button
Hide the filter button
Show the hide chevron to allow the filter to collapse
Start with the filter collapsed
Will show this text in the filter when collapsed
When filter or clear button is pressed, the ShareItGrid will reset to page 1.
When true the page will not do a full page post back but rather do an ajax postback of any grids.
Render all filter fields vertically in a single column.
Render fields either horizontally or vertically.
This is an abstract class used by all implemented filter field types.
Id of the filter field
Label for the filter field.
The css class for the label.
The css class for the control.
The css class for the whole field.
Render on a new row.
Force a new value into the field and ignore post backs and cache.
Force a new text into the field and ignore post backs and cache.
The value this field will show when reset or first opened and no cookie value exists for it.
Push any html attributes through to the control.
Push any html attributes through to the label.
Render an autocompleter field in the filter.
The type of list this autocompleter returns. Posts ResultType. This is a defined enum created in the client application by overloading AutoCompleteBase.ResultType
Causes the Javascript validate event to fire on the control after loading to validate any entry in the control.
The type of autocompleter field. See Autocompleter for more information.
The width of the rendered control. If -1 then is left empty for CSS to control.
Posts through the value of a linked field for filtering the list displayed in this control.
A list of extra Name Value string parameters to be posted along with the control. Allows extra IDs to be sent through.
Allow the control to post back an entry even if it didn't match a valid item in the list. Useful for allowing additions to the list.
Puts an icon next to the AutoCompleter to show a drop down list of all possible entries.
The control will not save values but instead always mirror the text. This allow a look up list but still act as a wildcard text field.
Adds "Active" to the Extra Parameters.
Render a checkbox field in the filter.
The css class for the label.
The css class for the control.
Render a date picker field in the filter.
Render a date time picker field in the filter.
The css class for the select controls.
Render a partial date field in the filter.
The css class for the select controls.
Show the day section of the filter.
Show the month section of the filter.
Show the year section of the filter.
Render a select field in the filter.
The css class for the select control.
The select items to render as the options.
Render a input text field in the filter.
<shareit-filter id="MyFilterId"> <filter-field-date-autocompleter id="filterMyAuto" label="Person" result-type="AutoComplete.ResultType.Person"></filter-field-date-autocompleter> <filter-field-date-picker id="filterDate" label="Date" default-value="@myDate"></filter-field-date-picker> <filter-field-select id="filterActive" label="Active" items="@SiUtil.YesNoList()" default-value="Yes"></filter-field-date-select></shareit-filter ><shareit-filter id="MyFilterId"> <filter-field-date-autocompleter id="filterMyAuto" label="Person" result-type="AutoComplete.ResultType.Person"></filter-field-date-autocompleter> <filter-field-date-picker id="filterDate" label="Date" default-value="@myDate"></filter-field-date-picker> <filter-field-select id="filterActive" label="Active" items="@SiUtil.YesNoList()" default-value="Yes"></filter-field-date-select></shareit-filter >$('#MyFilter_FilterButton').click(function () { ShareItLibrary.ShareItGrid.Init('MyGrid');}$('#MyFilter_ClearButton').click(function () { $('#filterActive').val('Yes'); ShareItLibrary.ShareItGrid.Init('MyGrid');}