JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Data Grid › DisplayField not working › Reply To: DisplayField not working
April 25, 2023 at 3:36 pm
#104766
oliver.aldrian
Participant
the reproduction of the problem is not my use case, so that workaround won’t work for me.
my displayed data in the grid contains an object of a complex type, which needs to be set in the grid.
So I have a autocomplete editor which displays the different options to select from, and when selected I handle the assignment in the CellEndEdit event
I have following properties set up
ComplexObject ObjectLink {get set}
string ObjectLinkName => ObjectLink?.ToString()
string ObjectLinkSetter {get set}
and my grid column
<div>
<div><Column DataField="ObjectLinkSetter" DisplayField="ObjectLinkName" Label="blah" AllowEdit="true" Editor="@autocompleteEditor" /></div>
</div>
I cannot use the ObjectLink directly, or at least the grid didn’t like it at all.