is it possible to add type="button" to the next and previous calendar box in searchbuilder?

is it possible to add type="button" to the next and previous calendar box in searchbuilder?

mohammedniyazmohammedniyaz Posts: 2Questions: 1Answers: 0

using versions
jQuery v3.5.1
DataTables 1.11.4
SearchBuilder 1.0.1

I am learning asp.net and am writing an asp.net project using data tables & the search builder plugin.

My issue is, when using search builder plugin on dates, the loaded calendar buttons "next" and "previous" is causing postbacks.

<button title="Previous"></button>
<button title="next"></button>

would it be possible to write in type="button" to the above so as to stop page postbacks.

<button type="button" title="Previous"></button>
<button type="button" title="Next"></button>

https://imgur.com/E9C7RtK
https://imgur.com/jaJx1Ox

Answers

  • mohammedniyazmohammedniyaz Posts: 2Questions: 1Answers: 0

    got this resolved.. added in the DateTime picker js file.

    <button type="button" title="'+c.previous+'">'+c.previous+'</button>
    <button type="button" title="'+c.next+'">'+c.next+'</button>

    no more postbacks in asp.net

  • sandysandy Posts: 913Questions: 0Answers: 236

    Hi @mohammedniyaz ,

    Thanks for pointing this out. This is definitely something we should fix. I've raised an issue internally (DD-2461 for my reference) and will report back here when there is an update.

    Thanks,
    Sandy

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin

    Hi,

    Just to say that I've released DateTime 1.1.2 with this fix.

    Allan

Sign In or Register to comment.