问题描述
我正在使用 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)
事件