Jump to content

How called Function?


k0de
 Share

Recommended Posts

Hallo.

How do I call a function from ExtJs if the event is not provided for by the parameter of the "sender"?

example:

UniStringGrid has event

function OnAfterEdit(value, originalValue, row, column)

{

 

},

but does not have a parameter of the "sender".

How to run a function in the

procedure TMainForm.UniStringGrid1AjaxEvent(Sender: TComponent; EventName: string, Params: TStrings);

begin

 

end;

???

Link to comment
Share on other sites

  • 2 weeks later...
  • Administrators

Hallo.

How do I call a function from ExtJs if the event is not provided for by the parameter of the "sender"?

example:

UniStringGrid has event

function OnAfterEdit(value, originalValue, row, column)

{

 

},

 

You can use this

 

function OnAfterEdit(value, originalValue, row, column)
{

 ajaxRequest(this, 'MyEvent', [ 'param0=A', 'param1=B' ]);
}

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.

 Share

×
×
  • Create New...