Get primary key of record added to the Grid

Using an OData4Adaptor when adding records to the grid I need to get the primary key of the record that was added to the grid.

I have used the events OnActiionBegin and OnActionComplete and both of them show the data record with a primary key = 0.

My class is simple

public class Client

{

public int ClientId {get; set;}

public string Name {get; set; }

}


Thank you for your help






1 Reply

NP Naveen Palanivel Syncfusion Team May 23, 2022 01:24 PM UTC


Hi Carl,


Greetings from Syncfusion support.


We have analyzed your query and we understand the your facing issue while retrieving the  Get primary key value  of record added on the grid. But we need some more details to further validate the reported issue. So kindly share the following details for better assistance.

                            

1.Share a video demo showing the replication of the problem you are facing

2.Share the issue reproducible sample

3. is PrimaryKey column hidden from Grid view?

4.Please share Your Complete grid  code example.

5. We kindly want to known isPrimary or isidentity are enable or not.

6. We need details about on how you have tried to access the value in OnActionComplete event.


Above requested details will be very helpful for us to validate the reported query at our end and provide solution as early as possible


Regards,

Naveen Palanivel.


Loader.
Up arrow icon