Android Question How to deselect date ranges on AS DatePicker

How can I deselect a date range after it has been set?
I have tried both .Refresh, .Rebuild and .RefreshSelectedDate to no avail.

Example where the code doesn't work:
Private Sub btnFilterCancel_Click
    dpCalendar.Rebuild
    dpCalendar.Refresh
End Sub
 

Alexander Stolte

Expert
Licensed User
Longtime User
You already can deselect with:
B4X:
AS_DatePicker1.SelectedStartDate = 0
AS_DatePicker1.SelectedEndDate = 0
AS_DatePicker1.Refresh

In the next update there is a new ClearSelections function, to make it quicker.
 
Upvote 0

Alexander Stolte

Expert
Licensed User
Longtime User
In the next update there is a new ClearSelections function, to make it quicker.
Now released
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…