Code Monkey home page Code Monkey logo

Comments (10)

icetech233 avatar icetech233 commented on June 3, 2024

_table.ReloadData(); 加了 也没有用, 强制刷新是用哪个函数

from ant-design-blazor.

icetech233 avatar icetech233 commented on June 3, 2024

完整代码,
https://github.com/icetech233/wms/blob/frontend/fontend/MyAntDesignApp2/Pages/StockIn/RequestForm/RequestFormList.razor

https://github.com/icetech233/wms/blob/frontend/fontend/MyAntDesignApp2/Pages/StockIn/RequestForm/RequestFormList.razor.cs

from ant-design-blazor.

stfei avatar stfei commented on June 3, 2024

是不是表格没有OnChange事件刷新不了吧?刷新会触发这个事件
参考https://antblazor.com/zh-CN/components/table#components-table-demo-ajax

from ant-design-blazor.

icetech233 avatar icetech233 commented on June 3, 2024

是不是表格没有OnChange事件刷新不了吧?刷新会触发这个事件 参考https://antblazor.com/zh-CN/components/table#components-table-demo-ajax

函数,单独执行是可以的,只要不是和modal 混在 一起就没有任何问题, modal visiable 改变 和table 不知道哪里冲突了,

from ant-design-blazor.

icetech233 avatar icetech233 commented on June 3, 2024

我的猜测是 modal 影藏的阻塞了, table的刷新, 元素是变了, 但是UI不刷新

from ant-design-blazor.

ElderJames avatar ElderJames commented on June 3, 2024

Hello @icetech233 , please provide the complete duplicate code.

from ant-design-blazor.

icetech233 avatar icetech233 commented on June 3, 2024

Hello @icetech233 , please provide the complete duplicate code.

完整代码,
https://github.com/icetech233/wms/blob/frontend/fontend/MyAntDesignApp2/Pages/StockIn/RequestForm/RequestFormList.razor

https://github.com/icetech233/wms/blob/frontend/fontend/MyAntDesignApp2/Pages/StockIn/RequestForm/RequestFormList.razor.cs

from ant-design-blazor.

stfei avatar stfei commented on June 3, 2024

w

是不是表格没有OnChange事件刷新不了吧?刷新会触发这个事件 参考 https://antblazor.com/zh-CN/components/table#components-table-demo-ajax

函数,单独执行是可以的,只要不是和模态混在 一起就没有任何问题, modal visiable 改变 和table 不知道哪里冲突了,

我一般就是加入了OnChange实现函数中调用StateHasChanged();就可以

from ant-design-blazor.

icetech233 avatar icetech233 commented on June 3, 2024

w

是不是表格没有OnChange事件刷新不了吧?刷新会触发这个事件 参考 https://antblazor.com/zh-CN/components/table#components-table-demo-ajax

函数,单独执行是可以的,只要不是和模态混在 一起就没有任何问题, modal visiable 改变 和table 不知道哪里冲突了,

我一般就是加入了OnChange实现函数中调用StateHasChanged();就可以

数据有刷新,不生效而已

from ant-design-blazor.

GoldSucc avatar GoldSucc commented on June 3, 2024

@icetech233 You should use Interactive render mode for interactive pages, otherwise it will not be changed. You can use @rendermode InteractiveServer for this (or wasm/auto alternative, depends on your project)

from ant-design-blazor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.