Jump to content

UniStringGrid -> ExtEvents -> celldblclick ajaxRequest how pass parameters to Delphi OnAjaxEvent


uniguisyriusz

Recommended Posts

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.

Link to comment
Share on other sites

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;

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...