[CLOSED] Component Column Issue on cancel button click

  1. #1

    [CLOSED] Component Column Issue on cancel button click

    I am working on Tabpanel , On first page i am doing some operation and open related data into second tab in Gridpanal , showing data using component column on it. It is working fine when i render data in Gridpanal but when i cancel this tab and moving back to tab first it is giving me a error : me is not define in Ext.net script.

    I am facing this issue only when i use component column, In column there is no issue . I try lots of work around but not able to solve this.

    I am attaching screen shot, will help you to understand the issue.

    Please suggest me work around.
    Attached Thumbnails Click image for larger version. 

Name:	componectcolumerror.jpg 
Views:	39 
Size:	93.4 KB 
ID:	10021  
    Last edited by Daniil; May 06, 2014 at 6:51 AM. Reason: [CLOSED]
  2. #2
    Thank you for the report.

    We will try to reproduce and if we can, we will provide a solution.
    Geoffrey McGill
    Founder
  3. #3
    Hi @alscg,

    I cannot reproduce with this example. Can you? If yes, please provide exact steps and share what Ext.NET version you are using. If no, please provide your test case.

    Example
    <%@ Page Language="C#" %>
    
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!X.IsAjaxRequest)
            {
    
            }
        }
    
        protected void Button_Click(object sender, DirectEventArgs e)
        {
            Store store = this.GridPanel1.GetStore();
            store.DataSource = new object[] 
                { 
                    new object[] { "test", "test" },
                    new object[] { "test", "test" },
                    new object[] { "test", "test" }
                };
            store.DataBind();
    
            this.TabPanel1.SetActiveTab(1);
        }
    </script>
    
    <!DOCTYPE html>
    <html>
    <head runat="server">
        <title>Ext.NET v2 Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
    
            <ext:TabPanel ID="TabPanel1" runat="server">
                <Items>
                    <ext:Panel runat="server" Title="Tab 1">
                        <Items>
                            <ext:Button runat="server" Text="Open Tab 2" OnDirectClick="Button_Click" />
                        </Items>
                    </ext:Panel>
                    <ext:GridPanel ID="GridPanel1" runat="server" Title="Tab 2" Closable="true">
                        <Store>
                            <ext:Store runat="server" AutoLoad="false">
                                <Model>
                                    <ext:Model runat="server">
                                        <Fields>
                                            <ext:ModelField Name="test1" />
                                            <ext:ModelField Name="test2" />
                                        </Fields>
                                    </ext:Model>
                                </Model>
                                <Reader>
                                    <ext:ArrayReader />
                                </Reader>
                            </ext:Store>
                        </Store>
                        <ColumnModel runat="server">
                            <Columns>
                                <ext:Column runat="server" Text="Test 1" DataIndex="test1" />
                                <ext:ComponentColumn 
                                    runat="server" 
                                    Text="Test 2" 
                                    DataIndex="test2" 
                                    Editor="true">
                                    <Component>
                                        <ext:TextField runat="server" />
                                    </Component>
                                </ext:ComponentColumn>
                            </Columns>
                        </ColumnModel>
                    </ext:GridPanel>
                </Items>
            </ext:TabPanel>
        </form>
    </body>
    </html>
  4. #4
    Hi,

    I have created the test page and posted with heading "Error in rendering component columns in gridpanel."
    Ext.net version we are using is 2.2.0.26551
  5. #5
    Quote Originally Posted by PriceRightHTML5team View Post
    Hi,

    I have created the test page and posted with heading "Error in rendering component columns in gridpanel."
    Ext.net version we are using is 2.2.0.26551
    I'm assuming this thread has been solved. I will mark as [CLOSED].
    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] Dynamic header column component direct event Issue
    By legaldiscovery in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Dec 21, 2015, 10:56 PM
  2. Replies: 3
    Last Post: Sep 29, 2014, 3:43 PM
  3. [CLOSED] Component Column - Combobox change event issue in IE 8
    By PriceRightHTML5team in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 08, 2014, 3:49 PM
  4. Replies: 6
    Last Post: Jun 21, 2013, 3:59 PM
  5. [CLOSED] Toolbar Button 2nd Click Issue
    By CMA in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 01, 2010, 10:18 AM

Posting Permissions