on 08-20-2004 2:20 PM
Hi,
I have two ALV controls in my program that are side by side.
----
+
CL_GUI_ALV_TREE | CL_GUI_ALV_GRID |
----
+
Only problem is that there are two scroll bars in each control. The top of line in each control must be syncrhonised. IE when I scroll down 5 lines in one control, the other must do the same automatically.
How can this be achieved? Are there system events that I can catch?
Can I turn off the scroll bars in both controls and implement my own using the scrollbar object? How can this be done?
Please provide examples.
Cheers,
Michael Pang
You can do this using only one ALV... just use an internal table to put your data in a single structure and use your ALV to manage this new table.
You will need to scratch more code, but the look will be more clear (IMO).
Good luck,
Vicenç
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Michael
It seems to me that it will be more suitable for you to use the class "CL_GUI_COLUMN_TREE", won't it?
As far as I know, scrolling happens just at the presentation layer. That is, it cannot be handled via ALV events although it has "AFTER_USER_COMMAND" event. But there are some methods of "CL_GUI_ALV_GRID" about scrolling. Check these out, I generally use top two ones.
GET_SCROLL_INFO_VIA_ID
SET_SCROLL_INFO_VIA_ID
SET_SCROLL_INFO
SET_SCROLL_INFO_COMBINED
SET_SCROLL_INFO_ID
*--Serdar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.