Multiline columns

3 posts, 1 answers
  1. Hans-Jürgen
    Hans-Jürgen avatar
    9 posts
    Member since:
    Feb 2020

    Posted 06 Jan Link to this post

    Hey,

    I have a problem displaying texts that have multiple lines in my columns (text bound to a database and linebreaks are cr lf).

    In the grid the texts are displayed in a single line.

    My intuition would be to use a column template as I haven't found a way to configure columns to show multiple lines. But I don't know how this template would have to look like.

    Could you help me with this?

  2. Answer
    Anton Mironov
    Admin
    Anton Mironov avatar
    207 posts

    Posted 08 Jan Link to this post

    Hi Hans,

    The default behavior for the Kendo UI Grid is to set multiple rows of text out of the box. Here is an example:

    However, I can see what is your point. One of the possibilities is to use a Template. In order to achieve the desired behavior without using templates, I would recommend the approach demonstrated in the following article:

    I hope this information helps.


    Kind Regards,
    Anton Mironov
    Progress Telerik

    Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

  3. Hans-Jürgen
    Hans-Jürgen avatar
    9 posts
    Member since:
    Feb 2020

    Posted 08 Jan in reply to Anton Mironov Link to this post

    Thank you, this solved my problem.
Back to Top