Long Name shows Ellipsis

1 Answer 77 Views
TreeList
Joel
Top achievements
Rank 2
Iron
Iron
Iron
Joel asked on 29 Apr 2022, 09:09 PM

Instead of showing as much name as can fit into the field, my field shows an ellipsis.  How can I get it to show as much as is possible instead of not even trying.

My template with an icon and the Text Name:

<script id="icon-template" type="text/x-kendo-template">
    <div class='group-icon'
         style='background-image: url(@Url.Content("#: ImageUrl #"));'></div>
    <div class='group-name'
        style='overflow: hidden; white-space: nowrap;'>#: Name #</div>
</script>

My column:

columns.Add().Field(e => e.Name).TemplateId("icon-template").Width(Glossary.Portal.ButtonWidthExtraWide);

1 Answer, 1 is accepted

Sort by
0
Tsvetomir
Telerik team
answered on 04 May 2022, 03:21 PM

Hi Joel,

The ellipsis comes from the inline styles that are applied to the element:

    <div class='group-name'
        style='overflow: hidden; white-space: nowrap;'>#: Name #</div>

If you would like to show more text, you could either increase the dimensions of the div or, make it scrollable. 

 

Regards,
Tsvetomir
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
TreeList
Asked by
Joel
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Tsvetomir
Telerik team
Share this question
or