EasyUI Forum
May 12, 2024, 08:30:21 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: 1 [2]
16  General Category / Bug Report / Re: TreeGrid:Shift select only works based on row ids, not after sorting on: January 06, 2017, 07:26:46 AM
May be I did not explain it well.

This is not the case of selected rows before the sort remaining selected after the sort.
This is the case of going from 0 selections->sort the grid-> use shift key to multi select rows. Then the rows selected are not continuous.
17  General Category / Bug Report / TreeGrid:Shift select only works based on row ids, not after sorting on: January 05, 2017, 03:57:50 PM
When I load the treegrid (configured to multiSelect=true and singleSelect=false) and do multiSelect using Shift Key it wokrs great.
But if I sort any of the columns, the Shift Key multi selection selects random rows instead of the rows between first selected row to the last selected row with shift key.
This bug is in version 1.5.1

Can you please fix it?
18  General Category / Bug Report / Re: commandSelect in treegrid is not working when signleSelect=0 & mutliSelect=1 on: January 05, 2017, 03:52:19 PM
Thank you. Can you please put the full minified file here? It is difficult to go on adding patches to the already minified JS file.
19  General Category / Bug Report / TreeGird expansion bug on: January 05, 2017, 03:49:50 PM
One of the fix does in 1.3.6 has introduced a bug in treegrid/tree itself.
These are the steps to see the issue.
1. Select a node in a treegrid/tree
2. Scroll down to a node which takes the selected node away from the view (this happens when we have limited height for tree/grid)
3. Expand the node navigated to (in step 2). (This happens only when the tree has to no children yet)
4. After the node is expanded, instead of showing the expanded node/contents of it, the selected scrolls into view.
This is really annoying experience.
20  General Category / Bug Report / Re: header check on datagrid on: January 05, 2017, 03:46:56 PM
This fix has a side effect I am noticing in 1.5.1.
1. Select a node
2. Scroll down to a node which takes the selected node away from the view
3. Expand the node navigated to (in step 2).
4. After the node is expanded, instead of showing the expanded node/contents of it, the selected scrolls into view.
This is really annoying experience.
21  General Category / Bug Report / commandSelect in treegrid is not working when signleSelect=0 & mutliSelect=1 on: January 04, 2017, 10:07:53 AM
When using mac OS browsers commandSelect (metaKey) in treegrid is not working when signleSelect=false & mutliSelect=true. It is basically the missing line of code here (the code in block is what needs to be added to your source).
Can you fix it in your version, so I don't have to maintain the source code of your framework in my project?

function _6b0(e){
var tr=_6ab(e.target);
if(!tr){
return;
}
var _6b1=_69e(tr);
var opts=$.data(_6b1,"datagrid").options;
var _6b2=_6ae(tr);
var tt=$(e.target);
if(tt.parent().hasClass("datagrid-cell-check")){
if(opts.singleSelect&&opts.selectOnCheck){
tt._propAttr("checked",!tt.is(":checked"));
_6b3(_6b1,_6b2);
}else{
if(tt.is(":checked")){
tt._propAttr("checked",false);
_6b3(_6b1,_6b2);
}else{
tt._propAttr("checked",true);
_6b4(_6b1,_6b2);
}
}
}else{
var row=opts.finder.getRow(_6b1,_6b2);
var td=tt.closest("td[field]",tr);
if(td.length){
var _6b5=td.attr("field");
opts.onClickCell.call(_6b1,_6b2,_6b5,row[_6b5]);
}
if(opts.singleSelect==true){
_6b6(_6b1,_6b2);
}else{
if(opts.ctrlSelect){
if(e.metaKey||e.ctrlKey){
if(tr.hasClass("datagrid-row-selected")){
_6b7(_6b1,_6b2);
}else{
_6b6(_6b1,_6b2);
}
}else{
if(e.shiftKey){
$(_6b1).datagrid("clearSelections");
var _6b8=Math.min(opts.lastSelectedIndex||0,_6b2);
var _6b9=Math.max(opts.lastSelectedIndex||0,_6b2);
for(var i=_6b8;i<=_6b9;i++){
_6b6(_6b1,i);
}
}else{
$(_6b1).datagrid("clearSelections");
_6b6(_6b1,_6b2);
opts.lastSelectedIndex=_6b2;
}
}
}else{
if(tr.hasClass("datagrid-row-selected")){
_6b7(_6b1,_6b2);
}else{
_6b6(_6b1,_6b2);
}
}
}
opts.onClickRow.apply(_6b1,_636(_6b1,[_6b2,row]));
}
};
Pages: 1 [2]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!