<e-columns>
<e-column field="OrderID" header-text="Order ID" is-primary-key="true" type="number" validation-rules='new Dictionary<string, object>() { {"required",true}, {"number",true} }' text-align="Right" width="75"></e-column>
<e-column field="CustomerID" header-text="Customer ID" type="string" validation-rules='new Dictionary<string, object>() { {"required",true}, {"minlength",3} }' width="80"></e-column>
<e-column field="EmployeeID_FirstName" header-text="Employee ID" type="string" datasource="ViewBag.data" edit-type="@(EditingType.Dropdown)" text-align="Right" width="75"></e-column>
<e-column field="Verified" header-text="Verified" default-value="false" edit-type="Boolean" type="boolean" width="110" text-align="Left"></e-column>
</e-columns> |
it is working now thank you very much
This scenario is working but I am having a new issue. I am using a master detail grid to assign roles to an user. I am trying to populate the table AspNetUserRoles which has to columns as the primary key (UserId and Role Id).
I am doing something similar to :
https://www.syncfusion.com/forums/126952/master-detail-grid-for-asp-net-core
I an getting the records in the detail but they are not being displayed in the screen. When I add a record it works and the new record is added to the AspNetUserRoles table in the database, but when I refresh the child grid shows the new row but all the cells are empty.
What is the way to handle a many to may relation in a master detail grid?
One of the issues I see in this case is that you can not use the is-primary-key="true" in two columns.