Good Day,
I have been implementing drag&drop functionality between two Telerik Blazor grids using different data models. Using the documentation article as a reference below, I am able to get 2 models (derived from the same interface) to drag between 2 grids.
How to Drag and Drop Different Models between Multiple Grids - Telerik UI for Blazor
However, grid functions such as sorting and filtering start throwing errors, when unique fields are introduced per model. To re-produce, start with the demo code in the artcile and try and sort "Unique Field 1". This throws an exception: "Unhandled exception rendering component: Invalid property or field - 'UniqueField1' for type: IParentSampleData". See screenshot attached.
This makes sense, but it's very limiting. My question is, if this can "worked around" in any way.
I have tried to intercept the "StateChanged" event. But as I still need to call gridObj.SetStateAsync(args.GridState), I cannot circumvent the issue. As per the error, I assume that these Grid methods use the interface definition and not the actual model instance to determine available properties for filtering & sorting, etc.
Is there somethig I am missing? Would anyone have any experience with this scenario and could point me in the direction of a "work around" if one exists?
Many thanks,
Peter