Author Topic: Checkbox in header is not being shown  (Read 3131 times)

jlozano

  • Newbie
  • *
  • Posts: 1
    • View Profile
Checkbox in header is not being shown
« on: May 19, 2015, 10:11:17 pm »
Hello,

I'm evaluating PQGrid Pro and everything is fine, except for a problem I found when I implemented the feature checkBoxes column. I follow de examples on de DEMO page to implement i:

var colModel = [
      {
         title: "",
         dataIndx: "state",
         width: 30,
         minWidth: 30,
         align: "center",
         cls: 'ui-state-default',
         resizable: false,
         sortable: false,
         editable: false,
         type:'checkBoxSelection',
         cb: {
            all: true,
            header: true
         }
      },
      {
         title: "Crew",
         width: 200,
         dataType: "string",
         dataIndx: "CrewName",
         editable: false,
         hidden: true
      },..... (etc, etc)


But the checkbox in the header is not appearing and an error message is thrown when I click on any checkbox in the grid:

Line: 367
Error: Unable to get property 'pqval' of undefined or null reference

Please let me know how can I fix it

Thanks

Javier



paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6210
    • View Profile
Re: Checkbox in header is not being shown
« Reply #1 on: May 20, 2015, 01:18:31 pm »
It's difficult to troubleshoot what could be wrong from your partial code for colModel which works fine.

http://jsfiddle.net/b6b710mz/104/

Please make changes in the above jsfiddle with your implementation and share it if you are still facing issue.