[CLOSED] Preventing grid rows from expanding

  1. #1

    [CLOSED] Preventing grid rows from expanding

    Hi,

    I have a gridpanel with some data. One of the columns holds notes that are originally input from an ext:HtmlEditor .. as such, these notes can contain linebreaks etc.

    I'd like to show some of the note in the grid.. but only as much as the column width allows. The user can double click to see the full information. When I put the data into the row it looks like this:

    Click image for larger version. 

Name:	Capture.JPG 
Views:	26 
Size:	15.0 KB 
ID:	3766

    .. can I stop this from happening? I want each row to be the same height (usual height).
    Last edited by Daniil; Jan 26, 2012 at 1:50 PM. Reason: [CLOSED]
  2. #2
    Hi,

    I don't think we can prevent line breaks to don't make line breaks.

    I can suggest to replace all line breaks with, for example, a white space using a custom Column's Renderer.
  3. #3
    OK thanks. I solved it using this javaScript:

    .replace(/<(?:.|\n)*?>/gm, '');

Similar Threads

  1. [CLOSED] Preventing user input
    By SymSure in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 07, 2011, 1:38 PM
  2. [CLOSED] Preventing a Desktop Window from being shown in the taskbar
    By r_honey in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Jan 04, 2011, 7:46 PM
  3. [CLOSED] Exception when grid contains no rows
    By alexp in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 18, 2009, 9:37 AM
  4. Replies: 1
    Last Post: May 31, 2009, 3:12 AM
  5. [CLOSED] Tips on preventing Cross Site Scripting (XSS)
    By danielg in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Apr 24, 2009, 1:20 PM

Tags for this Thread

Posting Permissions