[CLOSED] Restrict the length of text a user can write into a grid cell...

  1. #1

    [CLOSED] Restrict the length of text a user can write into a grid cell...

    Good Morning all

    I need to restrict the length of text a user can write into a grid cell.
    I've got this gris

            <ext:Panel ID="pnlSpecialMentions" runat="server" Header="false" Layout="FitLayout">
              <Items>
                <ext:GridPanel runat="server" ID="gridSpecialMention" AutoScroll="true" Height="100px">
                  <Store>
                    <ext:Store ID="storeSpecialMention" runat="server">
                      <Model>
                        <ext:Model ID="modelSpecialMention" runat="server">
                          <Fields>
                            <ext:ModelField Name="Id" />
                            <ext:ModelField Name="Text" />
                          </Fields>
                        </ext:Model>
                      </Model>
                    </ext:Store>
                  </Store>
                  <ColumnModel ID="SpecialMentionColumnModel" runat="server">
                    <Columns>
                      <ext:Column ID="colSpecialMentionId" runat="server" Text="Id" Hidden="true" DataIndex="Id" />
                      <ext:Column ID="colSpecialMentionText" runat="server" Text="Text" DataIndex="Text" Flex="1"  />
                    </Columns>
                  </ColumnModel>
                </ext:GridPanel>
              </Items>
            </ext:Panel>
    Is there a way to do this in markup ?

    Peter
    Last edited by Daniil; Jun 13, 2013 at 3:32 AM. Reason: [CLOSED]
  2. #2
    Hi Peter,

    Your GridPanel looks non-editable. So, how do you assume a user should type in a grid's cell.

    If you were using a TextField as a Column's Editor, it would be possible to achieve it this way.
    <ext:TextField runat="server" MaxLength="5" EnforceMaxLength="true" />
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi Peter,

    Your GridPanel looks non-editable. So, how do you assume a user should type in a grid's cell.

    If you were using a TextField as a Column's Editor, it would be possible to achieve it this way.
    <ext:TextField runat="server" MaxLength="5" EnforceMaxLength="true" />
    Well that's an Idea, I'll see how's the look and feel !

    Thanks for this
    Peter

Similar Threads

  1. Replies: 11
    Last Post: Jul 12, 2013, 6:19 AM
  2. Replies: 1
    Last Post: Sep 22, 2012, 8:08 PM
  3. Setting LabelWidth depending on text length
    By Ealirene in forum 1.x Help
    Replies: 5
    Last Post: Jul 19, 2010, 11:25 AM
  4. Replies: 1
    Last Post: Jul 30, 2009, 6:33 AM
  5. Limit grid view text length
    By jarremw in forum 1.x Help
    Replies: 1
    Last Post: Jan 13, 2009, 2:19 PM

Posting Permissions