Skip to content

Infragistics Community Forum / Web / Ignite UI for jQuery / How to type new line into grid cell?

How to type new line into grid cell?

New Discussion
Brash Solutions
Brash Solutions asked on Mar 20, 2014 12:09 PM

Hi

Ignite ui 13.2

I can’t figure out how to type a new line into a grid cell.

eg I am using cell edit mode nad I want to enter this:

Line 1

Line 2

Line 3

Whenever I hit the enter key it ends the edit. Same with ctrl+enter and alt+enter.

Is there a special key combination that I need to use?

I have set up a column formatter to convert new lines into
tags as described here:

http://www.infragistics.com/community/forums/p/80503/406279.aspx#406279

and it is being called for the column in question, I just can’t figure out how to type them into the cell.

Regards,

Graeme Hart

Sign In to post a reply

Replies

  • 0
    [Infragistics] Nikolay
    [Infragistics] Nikolay answered on Mar 20, 2014 9:01 AM

    Hello Graeme,

    I would suggest you to use a text editor provider for the grid columns where you will need line breaks. Set the editor's textMode to multiline: http://help.infragistics.com/jQuery/2013.2/ui.igtexteditor#options

    http://help.infragistics.com/Help/Doc/jQuery/2013.2/CLR4.0/html/igGrid_Updating.html#example_usage_of_columnsettings

     

    Hope this helps.

    • 0
      Brash Solutions
      Brash Solutions answered on Mar 20, 2014 11:02 AM

      Hi

      Thanks very much for the pointer. I now have it working.

      For completeness, I am setting up the grid model in my controller so I have the following setting for this column:

      oUpdating.ColumnSettings.Add(new ColumnUpdatingSetting() { ColumnKey = JobViewModel.COL_NOTE_NoteText, EditorType = ColumnEditorType.Text, EditorOptions="textMode:'multiline'" });

      I have to press shift+enter to type a new line into a cell.

      Regards,

      Graeme

      • 0
        [Infragistics] Nikolay
        [Infragistics] Nikolay answered on Mar 20, 2014 12:09 PM

        Hi Graeme,

        Thank you for sharing your code with the community. 

        If you have any further questions on the matter, please let me know.

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Brash Solutions
Favorites
0
Replies
3
Created On
Mar 20, 2014
Last Post
12 years, 7 months ago

Suggested Discussions

Tags

Created by

Created on

Mar 20, 2014 12:09 PM

Last activity on

Feb 25, 2026 9:07 AM