[CLOSED] How to diplsay Grid cell multi -line

  1. #1

    [CLOSED] How to diplsay Grid cell multi -line

    Using Ext.net 4.5.
    I want to display the grid cell content in multi-line rows.
    Tried the cell renderer and also "row-class" using "white-space: normal" didn't help..

    I don't want text to be wrapped, need to display one below other
    Example:
    Line -1
    Line -2
    Line -3

    Advise...
    Last edited by fabricio.murta; Apr 13, 2018 at 5:23 PM. Reason: no feedback from the user in 7+ days
  2. #2
    You can use a renderer or a template. I used a Renderer the example info. it isnt a complete example but it should help you. The Model is defined as Auto since i pass an Array of simple objects. Then i declare the renderer for the column. The renderer (as javascript) simply iterates over each element and creates a span for each element with a BR. The span is not required.

    good luck!
    /Z

            
            <ext:ModelField Name="testData" Type="Auto" />
            
            <ext:Column runat="server" Text="test" DataIndex="testData" Flex="1">
                <Renderer Fn="testRenderer" />
            </ext:Column>
            
            
            var testRenderer = function (value, metaData, record, rowIndex, colIndex, store) {
                var infoArray = value;
                for (i = 0; i < infoArray.length; i++) {
                        result += "<span>" + infoArray[i].data + "</span><BR/>";
                    }
                }
                return result;
            };
    thanks,
    /Z
  3. #3
    Hello @ndotis!

    I believe the reply provided by @Z is pretty correct, using a renderer is the way to go but, still no feedback from you since your first inquiry. Did the post from @Z help you at all, or do you need more assistance in this issue?

    We may mark this issue as closed if you do not post a follow-up in 7+ days from now, but that won't prevent you from posting here even after marked as closed so, take your time.
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. [CLOSED] GridPanel multi Cell Selection - supported on 3.2 ?
    By susanz in forum 3.x Legacy Premium Help
    Replies: 6
    Last Post: Mar 10, 2016, 3:20 PM
  2. [CLOSED] how to set multi-line in ext:Column?
    By hdsoso in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: May 03, 2013, 3:00 PM
  3. Multi Line Chart Functionality
    By rdustin in forum 2.x Help
    Replies: 0
    Last Post: Nov 28, 2012, 6:11 PM
  4. [CLOSED] Validation in Multi-line Prompt
    By CarWise in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Oct 02, 2012, 11:00 AM
  5. Replies: 1
    Last Post: Apr 22, 2009, 7:03 AM

Posting Permissions