Here's the code I'm using, still doesn't seem to work:
<%@ 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)
{
var data = this.GetData();
var store1 = this.gridMain.GetStore();
store1.DataSource = data;
store1.DataBind();
}
}
public object[] GetData()
{
return new object[] {
new object[] { "3m Co" },
new object[] { "Alcoa Inc" },
new object[] { "Altria Group Inc" },
new object[] { "American Express Company" },
new object[] { "American International Group, Inc." },
new object[] { "AT&T Inc." }
};
}
</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<form id="Form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<ext:GridPanel ID="gridMain" runat="server" StripeRows="true" TrackMouseOver="true"
Width="600" Height="350" AutoExpandColumn="Company">
<Store>
<ext:Store ID="Store1" runat="server">
<Reader>
<ext:ArrayReader>
<Fields>
<ext:RecordField Name="Company" />
</Fields>
<Fields>
<ext:RecordField Name="TestColumn" />
</Fields>
</ext:ArrayReader>
</Reader>
</ext:Store>
</Store>
<ColumnModel ID="ColumnModel1" runat="server">
<Columns>
<ext:Column ColumnID="Company" Header="Company" Width="160" DataIndex="Company">
<Editor>
<ext:TextField ID="txtCompany" DataIndex="Company">
</ext:TextField>
</Editor>
</ext:Column>
<ext:Column ColumnID="TestColumn" Header="TestColumn" Width="160" DataIndex="TestColumn" />
</Columns>
</ColumnModel>
<SelectionModel>
<ext:RowSelectionModel ID="RowSelectionModel1" runat="server" SingleSelect="true" />
</SelectionModel>
<View>
<ext:GridView ID="GridView1" runat="server">
</ext:GridView>
</View>
<Plugins>
<ext:RowEditor runat="server">
<DirectEvents>
<AfterEdit Success="this.record.set('TestColumn', 'TestValue'); #{gridMain}.getView().refresh();">
</AfterEdit>
</DirectEvents>
</ext:RowEditor>
</Plugins>
</ext:GridPanel>
</form>
</body>
</html>