如何解决我只想选择当前页面的所有记录
我正在使用 node *currentNode,*newNode,*nextNode;
newNode = new node(); // <- this is what you need to do,so you can insert.
cout << "You will Now be prompted to enter the ID number,name,and age of a particular person..." << endl;
cout << "Enter ID number: ";
cin >> newNode->id;
cout << "Enter name: ";
cin >> newNode->name;
cout << "Enter age: ";
cin >> newNode->age;
。当我使用 igx-grid
单击全选时,它会选择网格中存在的所有记录,而不是当前页面的所有记录。我想启用一些东西,当我点击选择所有 igx-grid 复选框时,它应该只选择当前页面记录,而不是全部。有没有办法做同样的事情?因为我从过去 3 天开始尝试,但没有得到任何解决方案。提前致谢!!!
解决方法
以编程方式选择行:
<button (click)="this.grid.selectRows([1,2,5],true)">Select 1,2 and 5</button>
以编程方式取消选择行:
<button (click)="this.grid.deselectRows([1,5])">Deselect 1,2 and 5</button>
来源:Official documentation of igx-grid (Row Selection)
尝试使用 (onRowSelectionChange)
事件
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。