jQuery UI Widgets Forums Grid Hide after carriage return

This topic contains 4 replies, has 2 voices, and was last updated by  Benji6996 10 years, 10 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Hide after carriage return #57361

    Benji6996
    Participant

    Is it possible to hide text after any carriage returns within the cell? However, whilst also maintaining the full content within the tooltip?

    What I mean is, at the moment, the grid will ignore carriage returns and just concatenate the content with a space.

    Thanks in Advance

    Hide after carriage return #57373

    Peter Stoev
    Keymaster

    Hi Benji6996,

    Such built-in behavior is unfortunately unavailable. But if you want to hide a cell editor, you can use the endcelledit method of jqxGrid.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Hide after carriage return #57408

    Benji6996
    Participant

    I don’t think I explained it very well, this hasn’t got anything to do with editing. See the following example, should be clearer:

    I have a grid with content such as:

    Address Line 1,
    Address Line 2,
    Post Code etc…

    However, the grid displays the content like so:

    Address Line 1, Address Line 2, Post Code etc…

    What I would like to know is whether this behavior can be prevented without editing the content. I want the grid to only display the first line of my content, but the tooltip to still show the full content…

    Hide after carriage return #57410

    Peter Stoev
    Keymaster

    Hi Benji6996,

    You can display whatever you wish in the Grid cells by implementing the cellsrenderer callback.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Hide after carriage return #57415

    Benji6996
    Participant

    Okay brilliant, will give that a go. Thanks Peter 🙂

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.