Skip to content
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

Smart table with two custom date filters #839

Open
prataraghav opened this issue Jul 16, 2018 · 1 comment
Open

Smart table with two custom date filters #839

prataraghav opened this issue Jul 16, 2018 · 1 comment

Comments

@prataraghav
Copy link

prataraghav commented Jul 16, 2018

Hello All,

I have two date columns in my smart grid. I have a custom date filter as you can see in the plunker below on one of these columns and it works fine. The issue starts when I wanted to try to have a second date filter on the second date column that I have. I modified an existing plunker that I found on this site. The data in my case is very similar to what you can see on this plunker. The second date column is the anniversary column

I got the version with one date filter working with
Angular 1.6.6
Smart table 2.1.11
Please ignore the versions that you see on this plunker

http://plnkr.co/edit/GGKGbpoiGFccc6xIs38a
What is wrong with this

  • As you can see if I try to filter by anniversary or birthdate the results or not what they are expected to be. And the date filter in birthdate auto populates the anniversary date filter when I do a selection and vice-versa!!

My questions:
1)Can you have more than have one custom date filter? - > I think so but whatever I am trying to do is getting ugly real fast. So, I am running out of options on the best way to do this?
2)Does anyone out there has an example of a working plunker that can meet the scenario that I explained above.
3) I couldn't find anything on stackoverflow that closely relates to the issue that I have here with smart grid custom date filter.

Thanks

@MrWook
Copy link
Contributor

MrWook commented Jul 25, 2018

Hello @prataraghav
just took a quick look. You have the same variable name on before and after for the datepicker. Just change it to query_1.before or something

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants