Author Topic: Implementing Crud with dialog box  (Read 2084 times)

dtag1000

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 12
    • View Profile
Implementing Crud with dialog box
« on: November 10, 2017, 11:10:10 pm »
Hello,

This function is causing an error:
    function getRowIndx() {
            var arr = $grid.pqGrid("selection", { type: 'row', method: 'getSelection' });
            if (arr && arr.length > 0) {
                return arr[0].rowIndx;                               
            }
            else {
                alert("Select a row.");
                return null;
            }


im getting this error:
Uncaught Error: no such method 'selection' for pqGrid widget instance

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6255
    • View Profile
Re: Implementing Crud with dialog box
« Reply #1 on: November 13, 2017, 02:40:18 pm »