hpl123 wrote
syndeo wrote
Hi hpl123, I am finding that when using this script an inline editing grid loses focus when the record is updated. Are you experiencing this? If so have, you been able find a solution? I am using v8.6
I am not using this together with inline editing anywhere so don´t have a fix for that behavior unfortunately. One thing you could try is instead of going the JS route, you go the CSS route. The JS removes the class .k-button from all buttons in the query and you should be able to manipulate this directly in the CSS i.e make changes to the .k-button classes for the query in question.
You could also do your own HTML operations and is what I usually do nowadays. I add HTML operations with icons etc. in a row:
fptasks.png
See here for how you can do this: https://www.awareim.com/forum/post/57504
Thanks for your assistance. I was able to create a custom css to get the desired result. No issue with the inline editing either. My original issue was the height of the row being too large with the button. Your original js above solved this issue for me, but then created the inline problem. With your css suggestion i was able to solve it. Thanks for saving lives!
Here is my custom css for others having the same problem. just fyi, i'm using a fa icon for the button image.
.my-customclass, .aw-link.k-button.aw-link-no-text{
height: 1em;
padding: 0em;
margin: 0em;
border: none;
background: none;
color: blue;
}