ParamQuery grid support forum

General Category => Bug Report => Topic started by: ohbayashi on March 22, 2018, 12:42:48 pm

Title: Bug report. Screen freezes with right arrow key
Post by: ohbayashi on March 22, 2018, 12:42:48 pm
If the last item of colmodel is hidden
Screen freezes with right arrow key.

success.
Code: [Select]
$(function() {
  var colm = [
    { title: "name", dataIndx: "name", dataType: "string", minWidth: 160 },
    { title: "updated at", dataIndx: "updated_at", editable: false, minWidth: 140, maxWidth: 140, align: "center" },
  ]; 
  var data = [
    { "name": "abc---A", "updated_at": "2017/03/01" },
    { "name": "abb---A", "updated_at": "2017/03/02" },
    { "name": "ccc---A", "updated_at": "2017/03/03", "deleted_at": "2017/03/03" },
    { "name": "cbc---A", "updated_at": "2017/03/04" },
    { "name": "aba---A", "updated_at": "2017/03/05" },
    { "name": "ccb---A", "updated_at": "2017/03/06" },
  ];
  var settings = {
    colModel: colm,
    dataModel: { data: data },
  };
  $("#grid_json").pqGrid(settings);
});

error.
Code: [Select]
$(function() {
  var colm = [
    { title: "name", dataIndx: "name", dataType: "string", minWidth: 160 },
    { title: "updated at", dataIndx: "updated_at", editable: false, minWidth: 140, maxWidth: 140, align: "center" },
    { title: "deleted at", dataIndx: "deleted_at", hidden: true },        // <- Add only this line.
  ]; 
  var data = [
    { "name": "abc---A", "updated_at": "2017/03/01" },
    { "name": "abb---A", "updated_at": "2017/03/02" },
    { "name": "ccc---A", "updated_at": "2017/03/03", "deleted_at": "2017/03/03" },
    { "name": "cbc---A", "updated_at": "2017/03/04" },
    { "name": "aba---A", "updated_at": "2017/03/05" },
    { "name": "ccb---A", "updated_at": "2017/03/06" },
  ];
  var settings = {
    colModel: colm,
    dataModel: { data: data },
  };
  $("#grid_json").pqGrid(settings);
});

This error does not occur in ver.3.4.0,
It occurs in ver.4.x.x or higher.
Title: Re: Bug report. Screen freezes with right arrow key
Post by: paramvir on July 10, 2018, 09:28:48 am
Thanks for reporting issue.

This is fixed in upcoming version.
Title: Re: Bug report. Screen freezes with right arrow key
Post by: paramvir on July 24, 2018, 11:04:36 am
This is fixed in v5.2.0