I'm trying to put a context menu on a treeview. Which is working.But when I use the same code to target another css class (targeting <a> tags it's only showing the first letters of each word)
class="treeview drawBorders ">
The narrow context menu items come up due to the decoration of its target - the k-icon element. I can suggest you the following rendering:
<a class="hiddenMoreButton"><span class='k-icon k-i-more-horizontal'></span></a>
Here you are a dojo example of the same: https://dojo.telerik.com/olESOXIw.