EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: raghav94 on July 08, 2017, 07:48:39 AM



Title: Tooltip in DataGrid disappears on sorting
Post by: raghav94 on July 08, 2017, 07:48:39 AM
Hi,

I have a TreeGrid.
I have used tooltip for every cell which shows the cell text.
But once I sort the field, tooltip does not appear.
How to fix this?

Code:
$('td span.tree-title').tooltip({
            position: 'right',
            trackMouse: true,
            content:function(){
            var cont = $(this).text();
            return '<span style="color:#fff">' + cont + '</span>';
            } ,
            onShow: function(){
                $(this).tooltip('tip').css({
                    backgroundColor: '#666',
                    borderColor: '#666'
                });
            },
        });