ParamQuery grid support forum
General Category => Bug Report => Topic started by: cosconit on April 21, 2020, 01:00:36 pm
-
Hi
We use the version 7.2 and meet this,please see the pictures in attachment , here is the steps:
1.Do fillter in one column.
2.Open another filter window,then close.
3.Check sellct all. All data gone.
Here is the table options:
var colM = [ {
align : "center",
cb : {
header : true,
select : true,
all : true
},
dataIndx : '',
type : 'checkbox',
dataType : 'bool',
editor : false,
sortable : false,
menuIcon : false,
}, {
dataIndx : 'cnNme',
title : 'name',
editor : {
type : "textbox",
},
width : 100,
}, {
dataIndx : 'collegeNme',
title : 'college',
editor : {
type : "textbox",
init : colCollegeEditor
},
width : 200,
}, {
dataIndx : 'sexNme',
title : 'sex',
editor : {
type : "textbox",
init : colSexEditor
},
width : 100,
}, {
dataIndx : 'birth',
title : 'birth',
editor : {
type : "textbox",
init : dts.pqGrid.dateEditor
},
width : 200,
}, {
dataIndx : 'countryCde',
title : 'country',
editor : {
type : "textbox",
init : colCountryEditor
},
width : 100,
}, {
dataIndx : 'cityNme',
title : 'city',
editor : {
type : "textbox",
init : colCityEditor
},
width : 150,
}, {
dataIndx : 'marry',
title : 'marry',
align : "center",
type : 'checkbox',
dataType : 'bool',
editor : false,
width : 100,
} ];
var option = {
dataModel : {
location : "local", // local / remote
recIndx : "uuid" // UUID
},
sortModel : {
type : 'local', // local / remote
single : true,
multiKey : 'shiftKey'
},
colModel : colM,
showTop : false,
numberCell : {
show : false
},
fillHandle : "",
selectionModel : {
type : 'cell',
mode : "single"
},
editModel : {
saveKey : $.ui.keyCode.ENTER,
keyUpDown : false,
clicksToEdit : 1
},
trackModel : {
on : true
},
menuIcon : true,
groupModel : {
checkbox : true,
}
};
var tableDate = [ {
uuid : '1111',
cnNme : 'YYY',
collegeUuid : 'collegeuuid0001',
collegeNme : 'college1',
sexCde : 'M',
sexNme : 'male',
birth : '2000-01-01 01:00:00',
countryCde : 'CN',
countryUuid : 'countryUuid001',
cityNme : 'Shanghai',
cityUuid : 'cityUuid001',
marry : true
}, {
uuid : '2222',
cnNme : 'XXX',
collegeUuid : 'collegeuuid0002',
collegeNme : 'college2',
sexCde : 'F',
sexNme : 'female',
birth : '2010-01-01 01:00:00',
countryCde : 'CN',
countryUuid : 'countryUuid001',
cityNme : 'Dalian',
cityUuid : 'cityUuid002',
marry : false
} , {
uuid : '2222',
cnNme : 'XXX',
collegeUuid : 'collegeuuid0002',
collegeNme : 'college3',
sexCde : 'F',
sexNme : 'female',
birth : '2010-01-01 01:00:00',
countryCde : 'CN',
countryUuid : 'countryUuid001',
cityNme : 'Dalian',
cityUuid : 'cityUuid0044',
marry : false
} ]
-
I've created a jsfiddle with your code and pqgrid@7.2.0, I don't see the mentioned issue be performing the steps.
https://jsfiddle.net/ygarcqL7/
Please look out for errors in the browser console and try to reproduce the issue if any in the jsfiddle itself.
-
It reproduces too
1. sex select 'Condition:equal female' , left 2 records.
2. college select 'Condition:equal ',then lost focus (not click 'OK') , click select all.All data disappear
-
Thanks for reporting issue, I'm able to reproduce it. I'm moving it to bug log for further analysis.
-
This issue would be fixed in upcoming versions.
Meanwhile you can use this patch to fix it. Please include the patch file just after including pqgrid js file.
Patch fix can be verified in this jsfiddle: https://jsfiddle.net/jorsgp8z/
-
Noted ,Thanks your support