Changes

HowTo:Implement Custom Filtering

1,113 bytes added, 25 July
/* Filtering a DateTime Property */ Started adding section on DateTime filtering
[[Category:Xamarin|Custom Filtering]]
{{UnderConstructionStart}}
=== Filtering a DateTime Property ===
Filtering a DateTime property is more complex than other properties, because one has to consider both the input, and the type of filtering.
 
Input can be done both as freetext, and using a DatePicker. Freetext input has the downside that users have to take care to enter the correct string format (ie. yyyy/MM/dd), whereas the DatePicker outputs a DateTime string which can then be formatted for use in the EvalExpression. The DatePicker does however have certain downsides, chief of which being that it is not nullable, the current date is shown when no date has been selected, making the non-filtered UI indistinguishable from the filtered one.
 
Filtering can be done as a simple comparison, such as finding an object whose date matches the inputted date. However, it is also possible to ranges; either 'open', that is, dates before or after the user's selection, or 'closed', which is a date falling inside a range created by two user inputs.
 
'''Input'''
* Freetext
* DatePicker
 
 
'''Single Comparison'''
 
 
'''Open Range'''
 
 
'''Closed Range'''
 
<br>
<br>
{{UnderConstructionEnd}}
[[Category:Client|Custom Filtering]]
696
edits