Remove query operation button borders

Contains tips for configurators working with Aware IM
Post Reply
hpl123
Posts: 2382
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Remove query operation button borders

Post by hpl123 »

Hi all,
This is already shared somewhere but never can find it (this forum is not friendly when it comes to searching for stuff :() so reposting it here:
Initialisation script of the query:

Code: Select all

config.dataBound = function(e) {
      removeButtonClass(e);
}
function removeButtonClass(e){
   
   let gridId = e.sender.element[0].id;
   let buttons = $("#" + gridId).find("a.k-button");
   $(buttons).removeClass("k-button");   
   
}
Henrik (V8 Developer Ed. - Windows)
PointsWell
Posts: 1169
Joined: Tue Jan 24, 2017 5:51 am
Location: 'Stralya

Re: Remove query operation button borders

Post by PointsWell »

hpl123 wrote:Hi all,
This is already shared somewhere but never can find it (this forum is not friendly when it comes to searching for stuff :() so reposting it here:
Initialisation script of the query:

Code: Select all

config.dataBound = function(e) {
      removeButtonClass(e);
}
function removeButtonClass(e){
   
   let gridId = e.sender.element[0].id;
   let buttons = $("#" + gridId).find("a.k-button");
   $(buttons).removeClass("k-button");   
   
}
Thanks. Was thinking about this last week. Would be good to be able to switch this on/off at the interface level. I suppose you could switch it off globally by modifying your custom CSS file to have borders none !important
Post Reply