I have several detail grids with one master. Each detail has its own tab. The problem is the grids that are in a tab, that is not in view, are not updated when the master record changes.
I’ve already done in aspx and code:
- MasterGrid: <px:PXGrid
- SyncPosition="true" KeepPosition="true"
- <AutoCallBack Command="Refresh" Target="tree" ActiveBehavior="True">
<Behavior RepaintControlsIDs="DetailGrid1, DetailGrid2View" BlockPage="True" CommitChanges="False"></Behavior>
</AutoCallBack>
(I am unsure about Target in this case)
- DetailGrid_n: <px:PXGrid
- SkinID="DetailsInTab" SyncPosition="True”
- <CallbackCommands>
<Refresh SelectControlsIDs="MasterGrid" ></Refresh>
</CallbackCommands>
- <CallbackCommands>
- SkinID="DetailsInTab" SyncPosition="True”
- Graph:
- public SelectFrom<DetailDAC_n>
.Where<DetailDAC_n.Id.IsEqual<MasterDAC.Id.FromCurrent>>.View Details_n;
-
BLC: _(Events.RowSelected<MasterDAC> e)
{
Details_n.View.RequestRefresh();
}
- public SelectFrom<DetailDAC_n>
The behavior is like this.
If the selected row in the master grid changes, the detail grid in the visible tab changes accordingly.
If the another tab is selected without selecting a row first, it correctly shows the details for the 1st master entry.
But if I select another row in master and then click on another tab, the grid still shows the details for the previous master entry.
Can I approve this?
Best answer by Naveen Boga
View original