Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

METHOD GRID->REFRESH_TABLE_DISPLAY issue

Former Member
0 Likes
2,400

I'm using CL_GUI_ALV_GRID EVENT DATA_CHANGED in local class to catch a change to checkbox selection in my ALV grid columns 1. Based on this selection, values are changed immediately for clarity. The data however does not change on the screen unless I
CALL METHOD GRID->REFRESH_TABLE_DISPLAY after changes are done to the table displayed.

Although this works functionally, I have a problem with the ALV grid checkbox display. When you select the checkbox, it shows that it is selected. Then for a moment it flashes as unselected and then displays as selected again. It just does not seem to be flowing smoothly and I'm not sure if I'm missing something in the ALV controls to make the dialog more smooth without this "glitch".

You can view this very short clip to show you exactly the ALV behavior that concerns me http://screencast.com/t/qvoIv6siyW

Best regards,

Adrian

2 REPLIES 2
Read only

Former Member
0 Likes
1,042

Hi,

In order to make the system react to an edit event, we need to first register the edit event. 

To register the edit event, call the method REGISTER_EDIT_EVENT

DATA: OBJ_GRID type ref to CL_GUI_ALV_GRID.

CALL METHOD OBJ_GRID->register_edit_event

        EXPORTING

          i_event_id = cl_gui_alv_grid=>mc_evt_modified.

pls check this link

http://wiki.scn.sap.com/wiki/display/ABAP/Making+ALV+to+react+to+Change+data+automatically

Read only

Former Member
0 Likes
1,042

Hii Adrian,

Could you be a little specific about ur requirement and are you using data_change event just only for checkbox selection?

For any change in alv grid display like deletion of row , change of column data we need to refresh the grid display by calling the method

CALL METHOD obj_grid->refresh_table_display

        EXCEPTIONS

          finished = 1

          OTHERS   = 2.

      IF sy-subrc <> 0.

*        STOP.

      ENDIF.

are u using standard check box or ur own created checkbox in grid display?

regards

Syed