PDA

View Full Version : [CLOSED] Component Column Issue on cancel button click



alscg
Apr 17, 2014, 2:20 PM
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.http://forums.ext.net/attachment.php?attachmentid=10021&stc=1

Please suggest me work around.

geoffrey.mcgill
Apr 17, 2014, 5:10 PM
Thank you for the report.

We will try to reproduce and if we can, we will provide a solution.

Daniil
Apr 17, 2014, 6:37 PM
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>

PriceRightHTML5team
Apr 21, 2014, 5:50 AM
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

geoffrey.mcgill
Apr 21, 2014, 7:16 AM
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].