| Summary: | Sort on header of DataGrid doesn't work in org.eclipse.edt.rui.samples_0.7.0 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | broy2 | ||||
| Component: | EDT | Assignee: | Huang Ji Yong <hjiyong> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | major | ||||||
| Priority: | P1 | CC: | chenzhh, jqian, svihovec | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
broy2
Brenda, is this a regression in EDT, do you know? Was this working in an earlier driver? Making this a P1 to indicate that we should look quickly to see what the fix would be. If it looks safe, contact Brian to get approval. Do no commit a fix without approval. Yes this is a regression in EDT. I hadn't been able test in earlier drivers because of a defect that was just recently fixed. Created attachment 207341 [details]
Fix
Reason:
This problem is caused by JavaScript Gen Change.
The sort function of DataGrid is handled by an external js DataGridUtil.
The data is any[] type in DataGrid. The elements in the data array will be boxed to any type while in RBD it is not. So the js of the sort function must add unboxAny to the array element.
Risk:
This fix only affects DataGrid widget.
Customer Impact:
If not fix, DataGrid cannot be sorted.
Testcase:
The RUI Sample whose data type is record array, Drag & Drop a new DataGrid and do sorting whose data type is dictionary array.
Reviewed by Brian. Commit the code Verified in 20111122 build. |