Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help on checkboxSelection error #107

Open
iamgsprabhu opened this issue Apr 20, 2016 · 0 comments
Open

Help on checkboxSelection error #107

iamgsprabhu opened this issue Apr 20, 2016 · 0 comments

Comments

@iamgsprabhu
Copy link

iamgsprabhu commented Apr 20, 2016

Hi

I am trying to implement the detailModel:
{ title: "", dataIndx: "selected", width: 30, dataType: "bool", align: "center", type: 'checkBoxSelection', cls: 'ui-state-default', resizable: false, sortable: false },

When I click on the checkbox, it gives me following error as:

"Unhandled exception at line 11754, column 3 in http://localhost/FIStar/Content/pqgrid.dev.js
0x800a138f - JavaScript runtime error: Unable to get property 'pqval' of undefined or null reference
If there is a handler for this exception, the program may be safely continued."

Please let me know how can I fix it.

thx
GP

it is breaking at following function in pqgrid.dev.js file: when I put a break point it show this.$inp as undefined.

_pCheckBC.setValCBox = function() {
    if (!this.hasHeaderChkBox()) {
        return
    }
    var that = this.that,
        options = this.options,
        cbAll = options.selectionModel.cbAll,
        data = cbAll ? options.dataModel.data : that.data,
        val = null,
        selFound = 0,
        unSelFound = 0;
    for (var i = 0, len = data.length; i < len; i++) {
        var rowData = data[i];
        if (rowData.pq_rowselect) {
            selFound++
        } else {
            unSelFound++
        }
    }
    if (selFound == len) {
        val = true
    } else {
        if (unSelFound == len) {
            val = false
        }
    }
    **_this.$inp.pqval({
        val: val
    })_**
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant