Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

346
Views
Vue Kendo grid TypeError: Cannot read properties of undefined (reading 'selectedKeyNames')

I have a kendo grid with a checkbox for each row and a submit button for the grid in Vue. When some rows checked and submit button pressed below function called:

verifyRequests: function () {
        var grid = $('#kgrid').data("kendoGrid");
        var keyNames = grid.selectedKeyNames();
        var ids = keyNames.map(function (x) { 
            return parseInt(x, 10); 
        });
        var gridData = $("#kgrid").data("kendoGrid").dataSource.data();
        var selected =[];
        ids.forEach(function(number) {
            gridData.forEach(function(dataItem) {
              if(number === dataItem.id) {
                selected.push(dataItem)
              }
            }) 
        });
        alert('number of selected rows' + selected);
    }

but I got this error: TypeError: Cannot read properties of undefined (reading 'selectedKeyNames')

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!