Roberto Nicchi Posted May 13, 2021 Share Posted May 13, 2021 Hi, I need help. I have a TunimDBgrid (for mobile). I would like to open a new form if i make a double click in a specific cell. How i can impliment grid.dblclick? How i can get the colomn.index or name? Thanks. Quote Link to comment Share on other sites More sharing options...
Mehmet Emin Posted May 13, 2021 Share Posted May 13, 2021 Hi Roberto, have a look at the following thread may help. Quote Link to comment Share on other sites More sharing options...
Roberto Nicchi Posted May 13, 2021 Author Share Posted May 13, 2021 I've already seen that topic and it would be perfect, but... in my event list there isn't "itemtap". Quote Link to comment Share on other sites More sharing options...
Mehmet Emin Posted May 13, 2021 Share Posted May 13, 2021 Hi Roberto, use the childdoubletap or similar have a look at this debug there you can access what you want. Hope it helps this time Quote Link to comment Share on other sites More sharing options...
Roberto Nicchi Posted May 13, 2021 Author Share Posted May 13, 2021 Mehmet, I'll try your solution and I hope to resolve the problem. Thanks. Quote Link to comment Share on other sites More sharing options...
Roberto Nicchi Posted May 13, 2021 Author Share Posted May 13, 2021 Mehmet, your solution work! thanks a lot! My implementation: Quote private var columnIDX,recordIDX:integer; tunidbgrid->clientevents->extevents->childdoubletap function childdoubletap(sender, location, eOpts) { ajaxRequest(sender,'_doubleclick',["colidx=" +location.columnIndex, "rowidx="+location.recordindex]); } tunidbgrid->events->onAjaxEvent if EventName = '_doubleclick' then begin columnIDX:= Params['colidx'].AsInteger; recordIDX:= Params['rowidx'].AsInteger; end; tunidbgrid->events->ondblclick if columnIDX=0 then begin //do something end; Quote Link to comment Share on other sites More sharing options...
Mehmet Emin Posted May 13, 2021 Share Posted May 13, 2021 Good to hear that it works..👍 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.