Sep 10, 2012, 5:59 PM
[CLOSED] Load grid when one row is select in another grid
I have two Grid Panel in my MVC application. When the page is loaded, the two Grid Panels are loaded.
But I need that when I selecting one row of the first grid, the second one must be reloaded.
I tried a lot of solutions:
1) on the client calling load/reload method of store
2) on the client calling Ext.Ajax.request() and loadData(data) of store;
3) on the server calling Reload method of grid
4) others that I find on the net.
But they doesn't works. The Controller is called, the AjaxResult is returned, but the GridPanel don't show the data.
First Grid with a selectionModel:
But I need that when I selecting one row of the first grid, the second one must be reloaded.
I tried a lot of solutions:
1) on the client calling load/reload method of store
2) on the client calling Ext.Ajax.request() and loadData(data) of store;
3) on the server calling Reload method of grid
4) others that I find on the net.
But they doesn't works. The Controller is called, the AjaxResult is returned, but the GridPanel don't show the data.
First Grid with a selectionModel:
<ext:GridPanel ID="GridPanel1" runat="server" StoreID="store1" Border="false" TrackMouseOver="true" StripeRows="true" Height="150">
<SelectionModel>
<ext:RowSelectionModel ID="rsmFiliais" runat="server" SingleSelect="true">
<DirectEvents>
<RowSelect OnEvent="RowSelect">
<EventMask ShowMask="true" Target="CustomTarget" CustomTarget="#{Panel16}" />
<ExtraParams>
<ext:Parameter Name="IDMaster" Value="Ext.get('Idmaster').getValue()" Mode="Raw" />
<ext:Parameter Name="Lancamento" Value="this.getSelected().get('Lancamento')" Mode="Raw" />
</ExtraParams>
</RowSelect>
</DirectEvents>
</ext:RowSelectionModel>
</SelectionModel>
second Grid:<ext:GridPanel ID="GridPanel2" runat="server" StoreID="store2" Border="false" TrackMouseOver="true" StripeRows="true" Height="110">
Last edited by Daniil; Sep 11, 2012 at 1:39 PM.
Reason: [CLOSED]