Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Bug with listgrid frozen columns autoscroll

$
0
0
Be sure your post includes:

Running SmartClient Version: v10.0p_2014-10-12
SmartGWT 5.0

On Chrome 44.0.2403.157

Preparation steps:
1. Create a ListGrid with single cell editing.
2. Create a frozen fields. Number of frozen fields must be less than unfrozen ones.
3. Set the editor properties of unfrozen fields to TextItem.

Steps to represent the bug:
1. Click on the any cell in the first unfreeze column to edit the cell.
2. Click on any freezed column to exit editing.

Bug behaviour:
After exit cell editing the grid will autoscroll to the last column. Some cell in the last column will get the style like "cursor mouse over".
See screenshots in attachment.

Code to represent the bug:
public class FrozenListGrid extends ListGrid{

public FrozenListGrid() {
List<ListGridField> fields = new ArrayList<>();
for (int i = 0; i < 14; i++) {
ListGridField field = new ListGridField("field" + i, "field" + i, 100);
fields.add(field);

if (i <= 5) {
field.setFrozen(true);
}

if (i > 5) {
field.setEditorProperties(new TextItem());
}
}

setCanEdit(true);
setEditByCell(true);
setCanSelectCells(true);

setFields(fields.toArray(new ListGridField[fields.size()]));
setData(new ListGridRecord[]{ new ListGridRecord(), new ListGridRecord(), new ListGridRecord()});
}
}

Attached Images
File Type: jpg 1.jpg (34.6 KB)
File Type: jpg 2.jpg (47.7 KB)
File Type: jpg 3.jpg (43.0 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles