Hi, sorry in advance if this question is convoluted. I have a question about synchronizing data between two grids. I have two grids that share the same datasource. When I add data to one grid, I want it to show up in the second grid. This has been working fine for us for a long time. However, we need to make the following enhancement.
Grid 1 is the grid that will receive an update via cache synchornization from Grid 2:
If I add a record that is a Normal FundAsset to Grid 2, it should show up as a new row in Grid 1 with ID 5, that works fine. Now, if I want to add a FundAsset record that is a Subordinate to ID 1, I want it to show up in Grid 2 like this and this works fine:
However, what currently happens is this in Grid 1 when adding to Grid 2. It adds a new record to Grid 1 like this:
I want the end state of Grid 1 to lool like this when adding subordinate ID 6 to Grid 2, It should just add the subordinate to FundAssetID 1:
Any suggestions on how to make this happen?
Grid 1 is the grid that will receive an update via cache synchornization from Grid 2:
Code:
Grid 1 (DataSource: FundAsset) FundAsset ID Name SubordinateList (hidden attached List of DataSource: FundAsset) 1 Aggregate FundAsset Subordinate FundAsset ID 2, Subordinate FundAsset ID 3 4 Normal FundAsset null
Code:
Grid 2 (DataSource: FundAsset) FundAsset ID Name SubordinateList (hidden attached List of DataSource: FundAsset) 5 Normal FundAsset null 6 Normal FundAsset null
However, what currently happens is this in Grid 1 when adding to Grid 2. It adds a new record to Grid 1 like this:
Code:
Grid 1 (DataSource: FundAsset) FundAsset ID Name SubordinateList (hidden attached List of DataSource: FundAsset) 1 Aggregate FundAsset Subordinate FundAsset ID 2, Subordinate FundAsset ID 3 4 Normal FundAsset null 5 Normal FundAsset null 6 Normal FundAsset null
I want the end state of Grid 1 to lool like this when adding subordinate ID 6 to Grid 2, It should just add the subordinate to FundAssetID 1:
Code:
Grid 1 (DataSource: FundAsset) FundAsset ID Name SubordinateList (hidden attached List of DataSource: FundAsset) 1 Aggregate FundAsset Subordinate FundAsset ID 2, Subordinate FundAsset ID 3, Subordinate FundAsset ID 6 4 Normal FundAsset null 5 Normal FundAsset null
Comment