Skip to content

maxlength of text column

New Discussion
Michael Xu
Michael Xu asked on Oct 26, 2017 10:34 AM

Is there an attribute of the igGrid column that we can use to specify the maximum length of characters for a cell? thanks

Sign In to post a reply

Replies

  • 0
    [INFRAGISTICS] Lyubomir Ahtarov
    [INFRAGISTICS] Lyubomir Ahtarov answered on Jan 21, 2013 8:49 AM

    Hello,

    You can attach a column formatter function to each column and check the text length. Based on that you may throw exceptions or cut the text length.

    Here is a sample showing how to use formatter functionality:

    http://www.infragistics.com/products/jquery/sample/grid/column-formatter

    regards

    Lyubo

  • 0
    [Infragistics] Elena
    [Infragistics] Elena answered on Jan 21, 2013 11:41 AM

    Hello aschoi,

     

    I was just wondering did you have a chance to try Lyubo’s suggestion. If you still need any assistance on the matter, please do not hesitate to ask.

    • 0
      Michael Xu
      Michael Xu answered on Jan 22, 2013 11:58 PM

      I used the maxLength option in the text editor to set the limit of the maximum number of the characters that can entered in the cell. thanks.

      • 0
        [INFRAGISTICS] Lyubomir Ahtarov
        [INFRAGISTICS] Lyubomir Ahtarov answered on Jan 23, 2013 7:20 AM

        hi,

        I've understood your question in a different way, but I'm happy that you have found a solution.

        regards

        Lyubo

      • 0
        rara
        rara answered on Mar 17, 2017 7:43 AM

        hi iam using ingnite java script for creating excel.one of wrap text formula is working only if your text less than 255 characters.if my string value is morethan 255 i am getting below error.

        The specified formula cannot contain a string longer than 255 characters.Portion with error: Value This text will be wrapped.

        can you please help me on this issue.

      • 0
        Zabih
        Zabih answered on Oct 26, 2017 10:34 AM

        mxu

        Could you Show a small Portion of your Code? did you set maxlength in Editoroptions under updating in column Setting??

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Michael Xu
Favorites
0
Replies
6
Created On
Oct 26, 2017
Last Post
8 years, 11 months ago

Suggested Discussions

Tags

Created by

Created on

Oct 26, 2017 10:34 AM

Last activity on

Feb 20, 2026 12:41 PM