Mike Posted May 8, 2018 Share Posted May 8, 2018 Hi, My application is using an Ajax Event (dblClick). When double clicked on a row it will show a detail form. However when by accident double clicked on the header it shows also a detail form. How can this be prevented? Link to comment Share on other sites More sharing options...
Sherzod Posted May 8, 2018 Share Posted May 8, 2018 Hi, Which build are you using? My application is using an Ajax Event (dblClick). How? Link to comment Share on other sites More sharing options...
Mike Posted May 8, 2018 Author Share Posted May 8, 2018 Hi, I am using build 1.0.0.1425. ExtEvents dblclick -> ajaxRequest(sender, '_dblClick', []) Link to comment Share on other sites More sharing options...
pedrisco Posted May 8, 2018 Share Posted May 8, 2018 what if you use dbgrid.ondblclick instead ? Link to comment Share on other sites More sharing options...
Sherzod Posted May 8, 2018 Share Posted May 8, 2018 Better you should use OnDblClick event ExtEvents dblclick -> ajaxRequest(sender, '_dblClick', []) In this case you can try this: function afterrender(sender, eOpts) { if (sender.headerCt) { sender.headerCt.el.on('dblclick', function(e) { e.stopEvent(); }); } } Link to comment Share on other sites More sharing options...
Mike Posted May 9, 2018 Author Share Posted May 9, 2018 @Pedrisco: it is interfering with onclick so I don't want to use it. function afterrender(sender, eOpts) { if (sender.headerCt) { sender.headerCt.el.on('dblclick', function(e) { e.stopEvent(); }); } } @P That works! Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now