| Summary: | DataGrid can NOT be sorted | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Yu Hao <yuhaodl> |
| Component: | EDT | Assignee: | Huang Ji Yong <hjiyong> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | cdlwuxin, hjiyong, yuhaodl |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Yu Hao
This is a JSGen problem.
The generation for DataGrid.egl clickGrid function line 249 is wrong
The EGL code is
while(widget.class != "EglRuiDataGrid" &&(widget.getAttribute("column") as int) == 0)
widget = widget.parent;
end
The generated js is
var eze_compound_1 = false;
eze_compound_1 = ((egl.checkNull(widget).getClass()) != "EglRuiDataGrid");
if (eze_compound_1) {
eze_compound_1 = ((egl.eglx.lang.EInt32.ezeCast(widget.getAttribute("column"),false) == 0));
}
while (eze_compound_1) {
widget = egl.checkNull(widget).getParent();
}
Here while (eze_compound_1) will always true because it only evaluated once. But actually, when widget changes, the while expression have to be evaluated again.
This defect is caused by the changes made in bug 357820 Resolve by bug 357820 *** Bug 360929 has been marked as a duplicate of this bug. *** In preview mode. If you click the data items in the data grid. the column will be abnormal. Comment 5 is another problem opened in bug 360615 Verified in 201110190921 |