Edit row modal contains edit controls for all items in the grid

Trying to display an Edit modal after clicking and Edit Command Button that appears on each row in the grid.

However, doing this results in the modal displaying a fully formed edit section for each of the rows in the grid instead of just for the one row that was actually clicked.

Any suggestions?

Roger

3 Replies

VA Venkatesh Ayothi Raman Syncfusion Team June 1, 2018 11:25 AM UTC

Hi Fausto, 

Thanks for using Syncfusion products. 

The reported issue was reproduced when we missed to define IsPrimaryKey property in unique Grid columns. Since edit/delete operation can be performed based on primary key column. Please refer to the following code example and Help documentation, 
Code example
 . .   . 
{ 
    col.Field("OrderID").HeaderText("Order ID").IsPrimaryKey(true).Width("120").ValidationRules(new { required = "true"}).TextAlign(Syncfusion.EJ2.Grids.TextAlign.Right).Add(); 
.  .   . 
}) 
 


Please let us know if you have any further assistance on this and also please confirm whether you are using Essential ASP.Net MVC 1 or Essential ASP.NET MVC 2? 


Regards, 
Venkatesh Ayothiraman. 



FA Fausto June 2, 2018 07:51 PM UTC

Awesome.  That did the trick.

Thank you,

Fausto


VA Venkatesh Ayothi Raman Syncfusion Team June 4, 2018 05:27 AM UTC

Hi Fausto, 

Thanks for the feedback. 

We are very happy to hear that your requirement is achieved. 

Regards, 
Venkatesh Ayothiraman. 


Loader.
Up arrow icon