Page 1 of 1
Custom filter buttons
Posted: 2015-05-14 06:51
by SkayyHH
I need to have some options (buttons abowe the list view) for standard filter options for my users. I.e. a button for filtering (show all, show actual year, ...)
Thanks much, Kai
Re: Custom filter buttons
Posted: 2015-05-15 06:04
by Satya Kavala
Hi kai,
may be it may help you.
jQuery(document).ready(function()
{
jQuery('#NoFilter').after('<button id="new" class="btn btn-default" style="padding-bottom: 12px;">New Filter</button> ');
jQuery('#new').change(function()
{
// create the url for filtering condition like below;
url="test.php?FilterAnd%5B"+i+"%5D=&FilterField%5B"+i+"%5D=2&FilterOperator%5B"+i+"%5D=<=>&FilterValue%5B"+i+"%5D="+id;
console.log(url);// it will display the url on console for better understanding to know if the url formation is correct or not
window.location = url;
});
});
Re: Custom filter buttons
Posted: 2015-05-16 20:27
by SkayyHH
Thanks very much. I´ll try it.
Best regards, Kai