Community
Participate
Working Groups
Sort on the header is not working for a DataGrid. To reproduce, do either of the following: 1. Drop a DataGrid on a RUIHandler, Preview, try to sort column. 2. Open gallery.events.EventDemo in org.eclipse.edt.rui.samples_0.7.0, Preview and click header to sort column.
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.