ExtJs Gridpanel store refresh

后端 未结 10 1275
刺人心
刺人心 2020-12-28 14:08

I am binding ExtJs Gridpanel from database and add \"Delete\" button below my gridpanel. By using the delete button handler, I have deleted selected record on gridpanel. But

10条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-28 14:26

    I had a similiar problem. All I needed to do was type store.load(); in the delete handler. There was no need to subsequently type grid.getView().refresh();.

    Instead of all this you can also type store.remove(record) in the delete handler; - this ensures that the deleted record no longer shows on the grid.

提交回复
热议问题