We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Kanban OData Put, body null


I try to use KanBan with ODataV4Adaptor with PUT in place of PATCH (for serverside validation) via Rm.UpdateType = HttpMethod.Put;

The Endpoint receives the PUT request but the FromBody response is null

I tried with FromODataBody -> SerializationException (I have 2 fields: int Id and a string)

public async Task<IActionResult> Put([FromRoute] int key, [FromBody] GetCOrderLinesDashboardResponse response)

If I try with a REST api client, the body is present.

What am I missing ?



<SfKanban KeyField="LineStatus" TValue="GetCOrderLinesDashboardResponse" Query="@COrderLinesKanbanQuery">
<SfDataManager @ref="dm" Url="/odata/corderlines" Adaptor="Adaptors.ODataV4Adaptor"></SfDataManager>
@foreach (Syncfusion.Blazor.Kanban.ColumnModel item in columnData)
<KanbanColumn HeaderText="@item.HeaderText" KeyField="@item.KeyField" />
<KanbanCardSettings HeaderField="Id" ShowHeader=false ContentField="BusinessEntity.Name" SelectionType="Syncfusion.Blazor.Kanban.SelectionType.Single" />

1 Reply 1 reply marked as answer

VJ Vinitha Jeyakumar Syncfusion Team March 15, 2023 01:37 PM UTC

Hi Jean,

We have tried to replicate the reported issue at our end by using PUT request with Kanban ODataV4Adaptor. but unfortunately, we didn't face any issue as you reported, and we can get the data in the FromBody while editing Kanban data. We have also prepared a sample for your reference. Run the service sample first, then run the Blazor server application, both the projects are attached below,

If still issue persists at your end, please provide us with the issue replicating runnable sample or modify the attached sample with the issue reproducing code.


Attachment: Kanban_Put_cd3a64b3.zip

Marked as answer
Live Chat Icon For mobile
Up arrow icon