Skip to Content

Mouseover on table data(dynamic text control)

Hi All,

I have to show a popover when i do mouse over on a table data. I am trying with attachBrowserEvent but at the time of open the popover i am getting error like control is not yet rendered. I am using dynamic UI table.

oProp2 = new sap.m.Text({
text: "{"+oColumnObject.colValue+"}"
oProp2.attachBrowserEvent("mouseover", function(oEvent){


fnCommentDialog : function (oProp){
       if ( !this._oDialogComment) {
                 this._oDialogComment =  sap.ui.xmlfragment(this.getView().g                 etId(),"                   g", this);

Please help me. Thanks in advance.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 27, 2018 at 10:40 AM

    Reason is your control is not fully rendered and you are attaching the event.

    Try to attach the event after its creation. Move the attachbrowserevent code outside the control creation.

    Use jQuery function to attach the event.

        $("<Text control - ID>").mouseover(function(){
    Add comment
    10|10000 characters needed characters exceeded