DateRangePicker in search picking date automatically does search.

Web Tips Q & ACategory: Krajee PluginsDateRangePicker in search picking date automatically does search.
m1l asked 2 months ago

Hi,
I have a daterange picker in the embedded _search.php form as such
<?php
echo DateRangePicker::widget([
‘model’=>$model,
‘attribute’=>’my_date’,
‘presetDropdown’=>true,
‘hideInput’=>false,
‘convertFormat’=>true,
‘pluginOptions’=> [
‘locale’=>[‘format’ => ‘Y-m-d’],
‘opens’=>’right’
],
‘hideInput’=>true
]);
?>
It works great but as there are dropdowns (and custom range), I’d like it to function so that as soon as a date range is picked, the search will be run.  I’ve been trying on and off for the last few days and haven’t got anywhere.  
Any help much appreciated.
Mike

Login or register to contribute or comment.

Login   Register