jQuery UI Widgets › Forums › Grid › Add custom class by filter menu
Tagged: #jqwidgets-grid, class, filter, filter menu class, javascript grid, jquery grid
This topic contains 1 reply, has 2 voices, and was last updated by Todor 6 years, 6 months ago.
Hello,
I have a grid with filters on several columns and I want to add a specific class by filter menu, to identify the different filters. Is it possible and how? thank you in advance.
Laurentf60
Hello Laurentf60,
Please review the following example whether it fits your needs. The key code is the following:
var buildFilterPanel = function (filterPanel, datafield) { if(datafield === 'firstname') { $(filterPanel).addClass('firstname'); } if(datafield === 'lastname') { $(filterPanel).addClass('lastname'); } ........
Let us know if you need further assistance.
Best Regards, Todor
jQWidgets Team https://www.jqwidgets.com
You must be logged in to reply to this topic.