How to apply 'Auto-Ellipsis' In ListView

1 Answer 93 Views
ListView
kim
Top achievements
Rank 1
kim asked on 06 Nov 2023, 05:38 AM

Hi

There is a List<Class> bound to the ListView, and the data in the list is changed from time to time by the user's. At that time, I want to apply Auto Elipsis, which is shown as... when the letter of the item is longer than the column width with each column width fixed, but I don't know how.

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 06 Nov 2023, 02:13 PM

Hello, Kim,

Following the provided information I suppose you are using RadListView in DetailsView which provides grid-like interface with columns. To achieve auto ellipsis you should handle the CellFormatting event:

private void RadListView1_CellFormatting(object sender, ListViewCellFormattingEventArgs e)
{
    e.CellElement.AutoEllipsis = true;
}

I hope this helps. Please let me know if you have any other questions.

Regards,
Nadya
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
ListView
Asked by
kim
Top achievements
Rank 1
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or