added getEditData method translate event data to string