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?
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>
Answers
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
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
Hi,
Just to say that I've released DateTime 1.1.2 with this fix.
Allan