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 =
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
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)
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