I have made the following class to implement custom column templates to use with the datagrid component.
I can successfully see the templates and I can edit the field but it never updates the entity. I have attached a gif that shows that I can edit other fields but as soon as I double click to go into the edit template of the custom column, once I press enter then the edits do not save on the entity. I have set break points in the "OnActionBegin" and "OnActionComplete" events and it seems that the requestType is always "Refresh" when I am using the custom column edit template. I have tried so many ways to get this to work but none of them fix the issue
I have figured out the issue that we were having with the refresh. This was due to our own issue we had implimented. I am now facing a different issue where the display template is not refreshing after the edit template has updated the items property. I have attached the updated project solution for reference to this issue. After you edit the "Custom Property" column, then it will not display the new value.
|
<GridColumn Field="CustomProperty" HeaderText="@customColumn.Header">
<Template>
@customColumn.DisplayTemplate(context as T)
</Template>
<EditTemplate>
@customColumn.EditTemplate(context as T)
</EditTemplate>
</GridColumn>
|