EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: roberto on May 29, 2021, 02:46:22 PM



Title: scroll on datagrid
Post by: roberto on May 29, 2021, 02:46:22 PM
I have some elements that are fixed inside a datagrid. When the user scroll i need to hide or remove them. I tried
Code:
$('#dg').scroll = function() { $('#options').hide(); }
but no success


Title: Re: scroll on datagrid
Post by: jarry on June 01, 2021, 05:00:55 AM
Please try this code to listen to the scroll event on the datagrid.
Code:
$('#dg').data('datagrid').dc.body2.on('scroll', function(e){
    //..
})


Title: Re: scroll on datagrid
Post by: roberto on June 02, 2021, 05:55:53 PM
Tanks