We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Set multiple column as primary key

Thread ID:

Created:

Updated:

Platform:

Replies:

143530 Mar 25,2019 04:37 PM UTC Mar 26,2019 09:56 AM UTC ASP.NET Core - EJ 2 1
loading
Tags: DataGrid
Mini Dev
Asked On March 25, 2019 04:37 PM UTC

Good morning,

is it possible to set multiple column as primary key in a grid?

Is it possible do something like:

<e-grid-column field="Partnum" textAlign="Left" width="150" isPrimaryKey="true"></e-grid-column>
<e-grid-column field="SupplierId" visible="false" isPrimaryKey="true"></e-grid-column>

Thanks

Pavithra Subramaniyam [Syncfusion]
Replied On March 26, 2019 09:56 AM UTC

Hi Mini, 

Greetings from Syncfusion. 

In Essential JavaScript 2 Grid you can define multiple Primary key column that have unique values. However the Grid actions which need primary key value will be done based on the first Primary key column in the Grid. 
 
Regards, 
Pavithra S. 
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;