我有一个使用CheckboxSelectionModel的EXT js网格。网格被分页。第一列是复选框,此列标题也是复选框。当单击列标题框时,它将选择/删除页面上的所有行,并仅删除该页面。问题是,如果在一个页面上选择全部,然后转到另一个页面,列标题框仍然被选中。没有选择正确的记录,只是没有更新的最高记录。我发现切换页面时触发的代码。我已经设置了selModel var。我发现了一个条件来检查列标题是否应该被检查,我只是不知道如何更新它。任何人都可以给我一个想法如何做到这一点?EXT.js Grid CheckboxSelectionModel:Header Check box not updating
0
A
回答
0
你有没有尝试添加一个监听器,网格的数据存储:
listeners : {
'load' : function() {
grid.getSelectionModel().clearSelections();
}
}
希望的clearSelections()
方法也将取消头复选框。
+0
我们在单独的按钮上使用clearSelections()和selectAll()。这些选择/清除网格所有页面上的所有记录,并且不会影响列标题。 – Mike 2011-05-20 14:42:41
相关问题
- 1. Vuejs DOM Not Updating
- 2. setText not appear/updating
- 3. Custom TableViewCell not updating
- 4. Angular2:View not updating
- 5. AngularJS =?bind not updating
- 6. AppWidget alarmmanager not updating
- 7. Progress View not updating
- 8. ItemsControlSourceSource Binding not updating
- 9. Haproxy Sticky-Table not updating
- 10. AngularJS Filter expression not updating
- 11. rowIndex not updating primeng datatable
- 12. Objective C Object Not Updating
- 13. Listview not updating(notify datasetchanged)
- 14. Angular not updating服务变量
- 15. ng-src in ng-repeat not updating
- 16. GMSMarker infowindow content(snippet)not updating
- 17. Ionic 2:src from img not updating
- 18. WPF Grid Grid MaxWidth not enforced
- 19. ng-Model list is not updating in angular js
- 20. Bootstrap grid not stacking
- 21. auth :: check in laravel 5 not working
- 22. ag-grid setRowHeight not working
- 23. Bootstrap Grid Columns Not Aligning
- 24. Ag Grid not display data
- 25. Fancy Box does not work please please
- 26. like box stream does not show stories
- 27. Grid Box在divs之间切换
- 28. 将Gtk :: Grid重复添加到Gtk :: Box
- 29. kendo multiselect in grid not binding correct
- 30. ng-click with ng-checked not updating复选框状态
http://stackoverflow.com/questions/7969607/extjs-checkboxselection-header-not-updating <=你可以参考这个 – Todayboy 2017-01-03 17:13:53