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

datepicker change event not working #18335

Closed
1 task done
muhlisatac opened this issue Dec 2, 2023 · 2 comments · Fixed by #18648
Closed
1 task done

datepicker change event not working #18335

muhlisatac opened this issue Dec 2, 2023 · 2 comments · Fixed by #18648
Assignees
Labels
Milestone

Comments

@muhlisatac
Copy link
Contributor

muhlisatac commented Dec 2, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Description

Hi
In my razer page i have a datepicker like below.
<abp-date-picker asp-for="DateFilter" label="@L["Date"].Value" />

in javascript I have events like below.
$('#DateFilter').on('apply.daterangepicker', function (ev, picker) { alert(1); });

$('#DateFilter').on('change', function () { alert(1); });

But none of them is working. Can anyone help? I already looked at the datepicker documentation.

Reproduction Steps

No response

Expected behavior

No response

Actual behavior

No response

Regression?

No response

Known Workarounds

<abp-input asp-for="DateFilter" type="text" label="@L["Date"].Value" />

$('#DateFilter').daterangepicker({ "singleDatePicker": true, "showDropdowns": true, "autoApply": true, "linkedCalendars": false, "showCustomRangeLabel": false }, function (start, end, label) { });

`$('#DateFilter').on('apply.daterangepicker', function (ev, picker) {
    alert(1);
});`

Version

7.4.2

User Interface

MVC

Database Provider

EF Core (Default)

Tiered or separate authentication server

None (Default)

Operation System

Windows (Default)

Other information

No response

@muhlisatac muhlisatac added the bug label Dec 2, 2023
@salihozkara salihozkara self-assigned this Dec 2, 2023
@muhlisatac
Copy link
Contributor Author

muhlisatac commented Dec 3, 2023

By the way, the code below which created by abp suite also doesn't work either for datetime filters.
$('#AdvancedFilterSection select').change(function() { dataTable.ajax.reloadEx();; });

@salihozkara
Copy link
Member

By the way, the code below which created by abp suite doesn't work either. $('#AdvancedFilterSection select').change(function() { dataTable.ajax.reloadEx();; });

@EngincanV

@salihozkara salihozkara added this to the 8.1-preview milestone Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants