[CLOSED] Make readonly gridpanel columns skip on tab

  1. #1

    [CLOSED] Make readonly gridpanel columns skip on tab

    Hello Everyone,

    Is there any way to skip read-only gridPanel columns on tab selection?

    Thank you.

    Off-topic: my organisation has paid for the Ext.Net licence. Does it make me a premium member. If yes, how to change the account?
    Last edited by Daniil; Apr 08, 2014 at 3:39 PM. Reason: [CLOSED]
  2. #2
    Quote Originally Posted by rbtceo View Post
    Off-topic: my organisation has paid for the Ext.Net licence. Does it make me a premium member. If yes, how to change the account?
    Hello. Your forum account has been upgraded to a Premium Member, and I've moved this thread into the Premium Help forum.
    Geoffrey McGill
    Founder & CEO
  3. #3
    Hi @rbtceo,

    Welcome to the Ext.NET forums!

    The non-editable cells should be skipped by default. Please run this example, double click the first cell and press Tab.

    Example
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!X.IsAjaxRequest)
            {
                Store store = this.GridPanel1.GetStore();
                store.DataSource = new object[] 
                { 
                    new object[] { "test", "test", "test" },
                    new object[] { "test", "test", "test" },
                    new object[] { "test", "test", "test" }
                };
            }
        }
    </script>
    
    <!DOCTYPE html>
    
    <html>
    <head runat="server">
        <title>Ext.NET v2 Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:GridPanel ID="GridPanel1" runat="server">
                <Store>
                    <ext:Store runat="server">
                        <Model>
                            <ext:Model runat="server">
                                <Fields>
                                    <ext:ModelField Name="test1" />
                                    <ext:ModelField Name="test2" />
                                    <ext:ModelField Name="test3" />
                                </Fields>
                            </ext:Model>
                        </Model>
                    </ext:Store>
                </Store>
                <ColumnModel runat="server">
                    <Columns>
                        <ext:Column runat="server" Text="Test 1" DataIndex="test1">
                            <Editor>
                                <ext:TextField runat="server" />
                            </Editor>
                        </ext:Column>
                        <ext:Column runat="server" Text="Test 2" DataIndex="test2" />
                        <ext:Column runat="server" Text="Test 3" DataIndex="test3">
                            <Editor>
                                <ext:TextField runat="server" />
                            </Editor>
                        </ext:Column>
                    </Columns>
                </ColumnModel>
                <Plugins>
                    <ext:CellEditing runat="server" />
                </Plugins>
            </ext:GridPanel>
        </form>
    </body>
    </html>
  4. #4
    Thank you.

    The problem caused:
    <SelectionModel>
         <ext:CellSelectionModel runat="server" />
    </SelectionModel>
    Mark the thread as closed.
    Last edited by Daniil; Apr 08, 2014 at 12:10 AM. Reason: Please use [CODE] tags
  5. #5
    Yes, a CellSelectionModel behaves in a different way. If you need the RowSelectionModel/CheckboxSelectionModel's behavior for a CellSelectionModel, please try this override:
    <head runat="server">
        <script>
            Ext.override(Ext.selection.CellModel, {
                onEditorTab: Ext.selection.RowModel.prototype.onEditorTab
            });
        </script>
    </head>
  6. #6
    Thank you.

    Mark the thread as solved.

Similar Threads

  1. [CLOSED] Make GridPanel ReadOnly
    By PriceRightHTML5team in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 17, 2013, 4:23 AM
  2. [OPEN] [#142] Make checkboxes in a TreePanel readonly
    By bogc in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 04, 2013, 7:00 AM
  3. Replies: 8
    Last Post: Jan 11, 2013, 11:49 AM
  4. [CLOSED] Tab navigation skip hidden row in GridPanel
    By leon_tang in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: May 13, 2011, 4:28 PM
  5. Replies: 4
    Last Post: Mar 20, 2009, 7:19 PM

Tags for this Thread

Posting Permissions