-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bootstrap Date range plugin suggestion #435
Comments
No I have not. Sorry if it's not clear I don't know how to explain... |
Hi Sorry for misleading you, I'll try to add support for this datepicker too |
Any news on this? |
Added in 0.9.3.beta.6 Usage example:
|
Thanks I will try it and let your know |
Hi, I have some issues as the date are not filtering. I'm wondering is this mandatory to use Moment.js because it is not required by Bootstrap-Datepicker? When using moment I'm getting nothing found even if date exist in daterange . my code
my td Where should I placed the additional options for the calendars ? Another issue is when clearing the date from the yadcf button the date is kept highlighted in the calendar. Enter a date, clear the field using the button open calendar to select a date the previous date is selected. I was having an issue with savestate that is not always save the date to ... I will do more investigation on this. Syntax adjustment needed if you use the date-range feature from the plugin (maybe you use 2 separate datepicker instead )
|
@lenamtl please try the 0.9.3.beta.7 it should fix some of your issues, and please specify the remaining issues in a reply + provide a test page to speed things up |
Hi, here is the results of my tests.
2a) This is also happening when clearing the field with exResetAllFilters. BUG 2b) When clearing the date field manually using DEL the date is no more selected = GOOD 2c) Using the option clearBtn: true the date is no more selected = GOOD
Here is my adjustment for CSS
Replaced this
with this
How can I console-log the inputs? so I can make more investigation why it is not filtering.. Thanks |
Hi, |
@lenamtl I can confirm that Moment wont be needed, will try to publish a new beta that will fix some of the issue soon |
0.9.3.beta.9 supposed to fix some of the mentioned above issues and there is no need in Moment library any more, please post remaining issues as a reply here (but please specify only the BUGS so it will be easier for me to scan through it) |
Hi,
Could you tried this to see if this is working on your side. Let say I select range 01/02/2018 to 01/03/2018 and I have a date in the column that is 14/02/2018 The TD Yadcf I'm using externally_triggered
|
@lenamtl it works for me , try the following setup
html:
|
Unfortunately I can't use this format yyyy-mm-dd |
Just try it to see if it works and let me know
…On Mar 2, 2018 5:32 PM, "lenamtl" ***@***.***> wrote:
Unfortunately I can't use this format yyyy-mm-dd
I absolutely need to use this format dd/mm/yyyy
You know depending of the country / language, we may use different date
format.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#435 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABmiX1905uudS2cQpm8ZQ9MFa0CJA978ks5taWYBgaJpZM4RhaZT>
.
|
Ok I found the problem it's not filtering when the TD have data-order=" "
If I remove data-order it's filtering ok but I need it for the ordering system... |
@lenamtl try setting other format in the data order and try to see if the datepicker got some limitation on its date format |
I will do more tests this week. Also more complete tests should be done to check if Yadcf have issue with data-order=" " and other kind of data, not only date. I saw some previous bugs on that topics... |
Hi,
Also when deleting the value with Datepicker clear button the value in Localstorage is not NULL When clearing using the exResetAllFilters it is setting the value in Localstorage to NULL which is Good
|
Any clue how to fix Bug no1? |
@lenamtl yes, keep on reporting in details on the issues , this clearly speeds (as possible) up the fixes |
@lenamtl should work in 0.9.3.beta.10 |
Hi, A) Localstorage statesave issue always occurred B) Localstorage statesave random issue This is a random issue so sometimes it saving sometimes not... |
Did you find what cause the problems? |
@lenamtl
below this line N#3223 and let me know how it works for you |
Hi, I have tested your line of code when clearing the field manually Del key (the from is missing) also the format is wrong as it is usually it get saved this way |
Let me know if there is something else to try as we are not on same timezone ;) |
if 0.9.3.beta.11 wont solve it please provide a jsfiddle that will reproduce the issue |
Here is the list of the tests and bug I have found:
**Tests were performed in this order and we should pay attention to the results format: Yadcf main reset button FROM date selected TO date selected Yadcf main reset button FROM date selected FROM clear using Datepicker clear btn Select TO date BUG Select FROM date BUG Yadcf main reset button Select FROM and TO dates Delete TO manually (see it change the date format) BUG Delete FROM manually - I'm not sure if it suppose to be null or "from":"","to":"" or "from":null,"to":null but this must be consistent and it is not. Possible BUG Select From date BUG |
@lenamtl what do you mean by saying FROM clear using Datepicker clear btn ? can you provide a test page / code to show that clear button from the calendar? |
this is a datepicker option There is a demo / sandbox https://uxsolutions.github.io/bootstrap-datepicker/ |
yadcf main reset button clears range date properly '' will be used for empty filter (instead of null) #435
yadcf main reset button clears range date properly also please let me know how exactly you checking the "yadcfState" because I couldn't reproduce some of your bugs |
Hi, ***Updates since I have updated to Chrome to to Version 65.0.3325.162 Is there any delay set when saving the filter to localstorage, I will check if I can reproduce with Firefox. When inspecting localstorage in console, sometimes the preview values does not get update but the localstorage values does, this may not related to the bug but I'm wondering how come it's updating quickly and sometimes it is not at all, this is strange.... For the confirmed bug let me know if you need more info, I can reproduce it all the time with all browser. ***Confirmed bug
Refresh the page, 2018-03-04T00:00:00.000Z will be displayed in the date field instead of 04/03/2018 |
on date range keyboard cleanup properly save date in localstorage/stateSave #435
fixed local storage date format issue in beta13, as to when I update yadcfState: I do it in range filters updates only because for non-range filters datatables updating the for other bugs related to this integration please open a new issue (with your great test cases attached) |
The format issue is fixed :) |
I have date column data in this {
filter_type: 'range_date',
datepicker_type: 'bootstrap-datepicker',
date_format: 'yyyy-mm-dd',
moment_date_format: 'YYYY-MM-DD h:mm:ss',
} no luck. it filters everything or nothing depending on one exact from date 2019-11-29 (like, tomorrow?) help 🙏 /*! Datepicker for Bootstrap v1.9.0 (https://github.com/uxsolutions/bootstrap-datepicker)
* Yet Another DataTables Column Filter - (yadcf)
*
* File: jquery.dataTables.yadcf.js
* Version: 0.9.4.beta.30
*
* Info: https://github.com/vedmack/yadcf
*/ |
@okliv please open a new issue with test page |
Hi,
Like a lot of dev I'm using this script for all my datepicker
https://github.com/uxsolutions/bootstrap-datepicker
I'm suggesting you to update to this one because it is more popular, have a better support and
because the one that you are using does not have a date range feature and does not a Bootstrap theme ....
https://github.com/Eonasdan/bootstrap-datetimepicker
Honestly, I'm not able to make it work with my actual code and the theme is not displaying....
Do you have a working demo with Bootstrap theme and date range with externally triggered filter?
Hope you will update it soon or someone have made a fork with this plugin.
The text was updated successfully, but these errors were encountered: