uniguisyriusz Posted November 27, 2019 Share Posted November 27, 2019 uniGUI Compolete Professional v1.90.0.1496 Ext event: function celldblclick(sender, td, cellIndex, record, tr, rowIndex, e, eOpts) { Ext.defer(function(){ ajaxRequest(sender, 'celldblclick', ['cel='+cellIndex], false) }, 300); } In Delphi OnAjaxEvent parameter cel is missing. There is parameter c but its value is 0 for first and second column (first column is fixed). I need to know column id independently from fixed columns count. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 27, 2019 Share Posted November 27, 2019 Can you make a simple testcase? Quote Link to comment Share on other sites More sharing options...
uniguisyriusz Posted December 2, 2019 Author Share Posted December 2, 2019 Example in attachment. function celldblclick(sender, td, cellIndex, record, tr, rowIndex, e, eOpts) { Ext.defer(function(){ ajaxRequest(sender, 'celldblclick', ['cel='+cellIndex, 'testA=22'], true) }, 300); } uniStringGrid.rar Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 2, 2019 Share Posted December 2, 2019 3 hours ago, uniguisyriusz said: ajaxRequest(sender, 'celldblclick', ['cel='+cellIndex, 'testA=22'], true) ajaxRequest(sender.grid, ....); Quote Link to comment Share on other sites More sharing options...
uniguisyriusz Posted December 4, 2019 Author Share Posted December 4, 2019 Still the same... Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted December 4, 2019 Share Posted December 4, 2019 Hi, Please check the below code. procedure TMainForm.UniFormCreate(Sender: TObject); begin with UniStringGrid1, JSInterface do begin JSAddListener('celldblclick', JSFunction('sender, td, cellIndex, record, tr, rowIndex, e', 'ajaxRequest('#1', "celldblclick", {cell:cellIndex});')); end; end; Quote Link to comment Share on other sites More sharing options...
uniguisyriusz Posted December 4, 2019 Author Share Posted December 4, 2019 Params.Text = Ajax=1 IsEvent=1 Obj=O1C Evt=select This=O1C rr=2 cc=3 _S_ID=fk9yVGicJY10516EAE5 _fp_=%26O18%3D%25020%2502%2502%25032%25033%2503 _seq_=5 _uo_=O0 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 4, 2019 Share Posted December 4, 2019 32 minutes ago, uniguisyriusz said: Params.Text Please use conditions.... if EventName ='...' then begin ... := Params.Values['...']; end Quote Link to comment Share on other sites More sharing options...
uniguisyriusz Posted December 4, 2019 Author Share Posted December 4, 2019 Ok. Now it's ok. Thanks for help. 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.