‎2013 Sep 30 7:53 PM
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
‎2013 Oct 01 4:47 AM
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
‎2013 Oct 01 5:39 AM
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