Jul 26, 2013, 1:17 AM
[CLOSED] One to Many gridpanel in looping
Hi!
I'm looping problem working with the dynamic creation of the type GridPanel One to Many. I made based on the example provided by Baidaly via the link:
http://forums.ext.net/showthread.php...l=1#post102925
In grid parent I programmed in RowSelectionModel property Listeners.Select.Handler:
Using the artifice described by Baidaly in Page_Load the problem is solved but the rest stops working (editing the grid, editable header, etc..).
Thanks!
Ermanni
I'm looping problem working with the dynamic creation of the type GridPanel One to Many. I made based on the example provided by Baidaly via the link:
http://forums.ext.net/showthread.php...l=1#post102925
In grid parent I programmed in RowSelectionModel property Listeners.Select.Handler:
var r = new RowSelectionModel();
r.Listeners.Select.Handler = ProductGrid.ClientID + ".store.load({ params: { tid: this.getSelection()[0].data.ID } });";
StopGrid.SelectionModel.Add(r);
In grid child I programmed a proxy for running a store DirectMethod: new Store
{
AutoLoad = false,
Model = {
new Ext.Net.Model {
IDProperty = "ID",
Fields =
{
new ModelField("ID"),
new ModelField("Name")
}
}
},
Proxy =
{
new PageProxy()
{
DirectFn = "App.direct.LoadProductData",
Reader =
{
new ArrayReader()
}
}
}
}
The grids are typically created in the Page_Load event. When I click the first time on a row of grid parent page is looping always running DirectMethod charging grid child. Thus it is not possible to manipulate the data grid child.Using the artifice described by Baidaly in Page_Load the problem is solved but the rest stops working (editing the grid, editable header, etc..).
protected void Page_Load(object sender, EventArgs e)
{
if (X.IsAjaxRequest)
{
//We do not need to DataBind on an DirectEvent
return;
}
}
How to solve this problem?Thanks!
Ermanni
Last edited by Baidaly; Aug 01, 2013 at 2:05 AM.
Reason: [CLOSED]