Unsynchronized Blazor Master Detail Grid

Hi.

I have two grids working as master and detail. 

My detail grid is one click behind the master, it means, The details grid is showing the data from the previous clicked row from the master. See the video. Both grids have the same data in the first column (Contract Number)

Can you help me with that?

The details data is pulled from a web service:

   public class ContractProductPricesForMemberController : ApiController

    {

        public static List<sp_GetContractProductPricesForMember_4Tier_Result> ProductPrices = new List<sp_GetContractProductPricesForMember_4Tier_Result>();

        public async Task<object> Get(int MemberId, int ContractId, Guid SessionId)

        {

            ReconnectV2Entities1 dbContext = new ReconnectV2Entities1();

            ProductPrices = dbContext.sp_GetContractProductPricesForMember_4Tier(MemberId, ContractId,SessionId).ToList();

            var data = ProductPrices.AsQueryable();

            var count = data.Count();

            return new { Items = data.Skip(0).Take(count), Count = count };

        }

    }


Attachment: sendtosync_45734120.rar

1 Reply

JP Jeevakanth Palaniappan Syncfusion Team September 28, 2021 01:10 PM UTC

Hi Leo, 

Greetings from Syncfusion support. 

We have checked your query and we suggest you to refer the below demo link in which we have a working demo sample for master detail grid. 

Get back to us if you have any other queries. 

Regards, 
Jeevakanth SP. 


Loader.
Up arrow icon