Removing ugly titles on Query filter input fields

Contains tips for configurators working with Aware IM
Post Reply
UnionSystems
Posts: 197
Joined: Fri Jun 17, 2016 7:10 am
Location: Brisbane Australia
Contact:

Removing ugly titles on Query filter input fields

Post by UnionSystems »

Currently on 8.7 ugly HTML is used for the title of Query filter fields, this text displays when you hover over the filter input field. So for example if you have an attribute named "Number" the title text is "<div style='text-align: left'>Number</div>" and this is displayed to the user when they hover their mouse over the input field.

You can change this to a set value for all the filter inputs in the Query by adding the following code to the Render Script for any Query.

Code: Select all

$('.k-filtercell  :input'). attr('title', 'Filter by text');
This will display "Filter by text" on all the filter input fields.
AWS Linux, Windows Server, AIM 8.4 & 8.6
lueu
Posts: 89
Joined: Tue Mar 07, 2023 11:49 pm

Re: Removing ugly titles on Query filter input fields

Post by lueu »

Thanks for the tip!
Is there any way to remove the filter input titles instead, did you ever try that?
Jaymer
Posts: 2412
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Removing ugly titles on Query filter input fields

Post by Jaymer »

Dave, thats not what I've ever seen.
Screen Shot 2023-05-12 at 12.35.10 PM.png
Screen Shot 2023-05-12 at 12.35.10 PM.png (17.85 KiB) Viewed 22711 times
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
UnionSystems
Posts: 197
Joined: Fri Jun 17, 2016 7:10 am
Location: Brisbane Australia
Contact:

Re: Removing ugly titles on Query filter input fields

Post by UnionSystems »

The following script might remove titles. I am not able to test this at the moment (on holidays....just passing some time on a train).

Code: Select all

$('.k-filtercell  :input').removeAttr('title');
And Jaymer says its not actually a problem for him so the original issue might be something specific with my setup of AwareIM.
AWS Linux, Windows Server, AIM 8.4 & 8.6
lueu
Posts: 89
Joined: Tue Mar 07, 2023 11:49 pm

Re: Removing ugly titles on Query filter input fields

Post by lueu »

UnionSystems, it works like a charm! Thanks! Enjoy your holiday! 8)
Post Reply