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? Quote 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? Quote 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', []) Quote 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 ? Quote 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(); }); } } Quote 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.