jQWidgets Forums

jQuery UI Widgets Forums Grid Add custom class by filter menu

This topic contains 1 reply, has 2 voices, and was last updated by  Todor 5 years, 12 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Add custom class by filter menu #105269

    Laurentf60
    Participant

    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

    Add custom class by filter menu #105322

    Todor
    Participant

    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

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.