Editing selected record show multiple records

Dear support team,
I used grid control as follow.
C#
publicIActionResultGame()
{
vardatasource=repo.db.Game.ToList();
ViewBag.datasource=datasource;
 
returnView();
}
Razor
<div>
<ej-gridid="FlatGrid"datasource="ViewBag.DataSource">
<e-edit-settingsallow-adding="true"allow-editing="true"allow-deleting="true"edit-mode="Dialog">e-edit-settings>
<e-toolbar-settingsshow-toolbar="true"toolbar-items='@newList<string>{"add","edit","delete","update","cancel","search"}'/>
<e-context-menu-settingsenable-context-menu="true">e-context-menu-settings>
<e-columns>
<e-columnfield="GameID"header-text="GameID">e-column>
<e-columnfield="Question"header-text="Question">e-column>
<e-columnfield="CreateDt"header-text="CreateDT"format="{0:dd-MM-yyyyHH:mm:ss}">e-column>
<e-columnfield="OwnerID"header-text="OwnerID"edit-type="DropdownEdit">e-column>
<e-columnfield="Play"header-text="Play"text-align="Right">e-column>
e-columns>
ej-grid>
div>
When I edit selected record, it shows multiple records in dialog as shown in picture. [p1.png]
I try to edit without dialog mode. First I selected 3rd row (ID: 2) [p2.png]
When I double clicked to edit, it changed to 1st row (ID:1) [p3.png]

All picture files are in zip file.
Is there anything wrong with my usage?

Thanks
Best regards,
Aung

Attachment: grid_d86846ba.zip

3 Replies

SS Seeni Sakthi Kumar Seeni Raj Syncfusion Team October 16, 2017 07:14 AM UTC

Hi Aung,  
 
Thanks for contacting Syncfusion Support.  
 
We have already discussed about this in the following KB.  
 
 
Due to the absence of the is-prmarykey for the Grid e-columns, the reported issue occurred. So, we suggested to mention the is-primarykey for the required column.  
 
Regards,  
Seeni Sakthi Kumar S. 



TH Than Htike Aung October 16, 2017 03:20 PM UTC

Hi

It solves the problem.
Thanks a lot

Best regards,

Aung



SS Seeni Sakthi Kumar Seeni Raj Syncfusion Team October 17, 2017 04:09 AM UTC

Hi Aung,  
 
Thanks for the update.  
 
We are happy to hear that your issue has been resolved.  
 
Regards,  
Seeni Sakthi Kumar S. 


Loader.
Up arrow icon