dotnetcore/BootstrapBlazor

SelectTable 在 Table 自定义编辑模板选中不刷新值

Closed this issue · 1 comments

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

PixPin_2024-07-07_21-02-46

直接执行无效。尝试调用 StateHasChanged方法后有效。
var w = wieidbRef.GetType().GetMethod("StateHasChanged", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance); w.Invoke(wieidbRef, null);

<TableColumn @bind-Field=context.ParentId Visible="false" IsVisibleWhenAdd="true" IsVisibleWhenEdit="true"> <EditTemplate Context="v"> <div class="col-12 col-sm-6"> <SelectTable TItem="WieIdbOrderList" OnQueryAsync="t=>GetParentIdSelectQueryData(t,v)" GetTextCallback="t=>t.OrderName" OnValueChanged="@(async t=>v.ParentId=t.Id)" @bind-Value=pidSelectOrderlist @ref=wieidbRef> <TableColumns Context="ss"> <TableColumn @bind-Field="ss.Id"></TableColumn> <TableColumn @bind-Field="ss.OrderName"></TableColumn> </TableColumns> </SelectTable> </div> </EditTemplate> </TableColumn>

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

No response

Anything else?

No response

@wenlino Thank you for filing this issue. In order for us to investigate this issue, please provide a minimalistic repro project that illustrates the problem.