The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I customize one item on toolbar and define toolbarClick (:toolbarClick="toolbarClickHandler"). But I find args (given in toolbarClickHandler: function(args)) don't include those values of selected grid row, how can I get them?
PSPavithra Subramaniyam Syncfusion Team March 5, 2019 11:25 AM UTC
Hi Jzy,
Thanks for contacting Syncfusion support.
In Essential JavaScript 2 Grid, ‘toolbarClickEventArgs’ will contains only the default arguments from the source. We suspect that you want to get the selected row information inside the toolbarClick event of Grid. If yes you can achieve your requirement by using the ‘getSelectedRows()’ and ‘getSelectedRecords()’ methods of Grid component. Please refer to the below code example, documentation link and sample link for more information.
As per your suggestion, we will improve our documentation and will add “How to get selected records in custom toolbar click” in toolbar section, which will refresh in any of our upcoming release.