Hi,
 
I'm currently implementing column resizing on DataGrid but I stumbled upon 
2 problems. Maybe somebody from the GWT team can help me out to solve this ?
It looks to me that those are bugs/features of the current 
DatatGrid/CellTable(s) ... but it would be great if I can get a complete 
working solution instead.
 
Problem 1: Event.setCapture does not seem to work when used in a Header.
 
My solution is to have a custom header that consumes mousedown,mouseup and 
mousemove events.
I check if a mousedown is happening on the last pixels of the column I use 
setCapture on the Element.
But, the capture does not work, events are still dispatched as if I did not 
call the setCapture.
I get the mousemove events in the other header cells instead of only on the 
capturing column header.
 
Is there a solution that allows me to capture all events when resizing the 
column ? The user has to be careful right now not to go outside the table 
header.
 
Problem 2: setColumnWidth does not force an onResize on the DataGrid.
 
To force a column resize I invoke the setColumnWidth method. My DataGrid 
table is wider than the allowed space, and so it needs an horizontal 
scrollbar.
However the scrollbar does not adjust automatically when I call the 
setColumnWidth method. It does however update when I resize the window.
 
I did a workaround by forcing onResize after calling the setColumnWidth, 
but shouln't the DataGrid do this automatically ?
 
David
 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to