Hi,
I am working on Treegrid where in I have used a fixed template for one column in which I have placed 2 icons at the end, I notice the issue when the width of the column is less than the column text the icons will appear wrapped below, but I want it to be in straight line and the text should show some characters and after which it can show "...". But sometimes if the width is not mentioned then the text only shows "..." if it is too big for display.
PFB the screenshot and my template implementation, the icon '+' and menu button for child of PM019 is showing in the second line
My Template implementation:
<div class="control_wrapper">
<ejs-treegrid [dataSource]='data' #treegrid [treeColumnIndex]='1' id="default"
parentIdMapping='{{treeConfiguration.pidAttribute}}' idMapping='{{treeConfiguration.idAttribute}}'
(dataBound)='onDataBound()' [editSettings]='editSettings' [allowFiltering]="true" [toolbar]='toolbarOption' [allowSorting]="true" [filterSettings]="filterSettings"
(rowSelected)="rowselected($event)" (rowDataBound)='rowBound($event)' (dataBound)="onTreeReady()" [allowRowDragAndDrop]='true'>
<e-columns>
<e-column field='ID' headerText='Node ID' width='100' isPrimaryKey='true' [visible]='false' ></e-column>
<e-column field='Name' headerText='Name' width='300' >
<ng-template #template let-data="">
<i class="{{ data['iconClass'] }}" id="icontooltip"
title="{{data[treeConfiguration.tooltiptext.icon]}}"></i>
<span class="treeName" id="nodetooltip"
title="{{data[treeConfiguration.tooltiptext.node]}}">{{data[treeConfiguration.displayAttribute]}}</span>
<div class="nodeicon">
<span class="e-icons e-add" (click)="addItem(data)"></span>
<span class="e-icons e-menu" (click)="btnclick($event)"></span>
</div>
</ng-template>
</e-column>
<e-column field='Description' headerText='Description' width="200"></e-column>
</e-columns>
</ejs-treegrid>
<ejs-contextmenu #contentmenutree id='contentmenutree' target='#default' [items]="menuItems" (beforeOpen)='beforeopen($event)' (select)='menuclick($event)'>
</ejs-contextmenu>
</div>
<style>
.nodeicon {
display: none;
float: right;
margin-left: 4px;
}
::ng-deep .e-treegrid .e-rowcell:hover .nodeicon {
display: block;
}
</style>
Kindly let me know how to resolve this.
Thanks in Advance.
Regards,
Pooja K