I have to update name of an item which is displayed in card.I need to update the name and send to data base how i can do?
@foreach (var item in FileList)
{
////how to upate below name feild and that should be updated in list also
@item.Name
}
Naimish MakwanaPosted Feb 2, 2023, 9:20 AM
Please refer below link. That might be help to you.
https://stackoverflow.com/questions/55775060/blazor-component-refresh-parent-when-model-is-updated-from-child-component
Thanks.
Sujeet RamanPosted Feb 2, 2023, 9:09 AM
But i have db operation in parent component.How i can update FileList name vale and send to parent
Naimish MakwanaPosted Feb 2, 2023, 8:57 AM
Hello Sujit,
You can use the
@oninputevent to achieve this.Then Implement the UpdateName method in the code-behind file to update the item name.
Thanks
Naimish Makwana