Custom filter buttons

Wish to see a specific feature/change in future releases? Feel free to post it here, and if it gets enough "likes", we'd definitely include it in future releases!
Post Reply
SkayyHH
Veteran Member
Posts: 481
Joined: 2015-04-27 21:18

Custom filter buttons

Post by SkayyHH » 2015-05-14 06:51

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

Satya Kavala
Veteran Member
Posts: 45
Joined: 2015-04-15 06:33
Location: Hyderabad
Contact:

Re: Custom filter buttons

Post by Satya Kavala » 2015-05-15 06:04

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;


});
});
Thanks&Regards
Satya Kavala
[email protected]

SkayyHH
Veteran Member
Posts: 481
Joined: 2015-04-27 21:18

Re: Custom filter buttons

Post by SkayyHH » 2015-05-16 20:27

Thanks very much. I´ll try it.

Best regards, Kai

Post Reply