dialogmode displaying all grid items.

Good afternoon, on my grid when I select the item to edit it does not seem just the selected item appears all the items in the grid, how do I just show the data of the item sealed, I'm using edit dialogmode, thank you already.



Attachment: erro_mvc_b5f92561.rar

1 Reply

MS Mani Sankar Durai Syncfusion Team January 2, 2018 12:38 PM UTC

Hi José, 

Thanks for contacting Syncfusion support.  

We have checked your query and the cause of the issue is due to not enabling the IsPrimaryKey property in grid. When editing the rows in grid it is must to enable IsPrimaryKey property.  
Please refer the documentation link 
Please refer the code example 
<ej:Grid ID="FlatGrid" runat="server" AllowPaging="True"> 
           <EditSettings AllowEditing="True" AllowAdding="True" AllowDeleting="True"></EditSettings> 
           <ToolbarSettings ShowToolbar="True" ToolbarItems="add,edit,delete,update,cancel"></ToolbarSettings> 
           <Columns> 
                <ej:Column Field="OrderID" IsPrimaryKey="true"/> 
                <ej:Column Field="CustomerID" /> 
... 
           </Columns>  
           </ej:Grid> 

Please let us know if you need further assistance.  

Regards, 
Manisankar Durai. 



Loader.
Up arrow icon