Re: Changes Opacity for vertical scrollbar inside 2.4 DataGrid?

2013-04-04 Thread RAJ
Hi Andrea, Thanks a lot for the reply. I have tried your suggestions and it worked perfectly. I am copying code here so that others can use it if needed. --As you said, following code is part of constructor of the class which extends DataGrid final CustomScrollPanel scrollPanel =

Re: Changes Opacity for vertical scrollbar inside 2.4 DataGrid?

2013-04-04 Thread Andrea Boscolo
Good, another two suggestions: - if you do not want opacity/transition, simply use NativeVerticalScrollbar.Resources as-is; - in order to reliably know the right scrollbar width/height (in case you want to stick with a native scrollbar), you can use the static methods

Changes Opacity for vertical scrollbar inside 2.4 DataGrid?

2013-04-03 Thread RAJ
Can someone please tell how to change the opacity for vertical scrollbar inside 2.4 DataGrid? Tried few things but nothing is working... 1)scrollPanel.getElement().getStyle().setOpacity(1); 2) DOM.setElementAttribute(scrollPanel.getElement(), Opacity, +1); 3)

Re: Changes Opacity for vertical scrollbar inside 2.4 DataGrid?

2013-04-03 Thread Andrea Boscolo
DataGrid uses a CustomScrollPanel for its data table. Such panel uses transparent-style native scrollbars, but the resources used (NativeVerticalScrollbar.ResourcesTransparant) are hardcoded in the CustomScrollPanel constructor. I guess you can: - extend the DataGrid to obtain a reference of