Jump to content

How to Implement a ClickHold on TUniDBGrid


Recommended Posts

2 hours ago, KingOrmon said:

how can I implement this event under unigui desktop TUniDBGrid ?

For example, try.

1. UniDBGrid1 -> ClientEvents -> ExtEvents ->

function afterrender(sender, eOpts) 
    sender.getEl().addListener('taphold', function (a, b) {
		ajaxRequest(sender, '_taphold', []);

2. UniDBGRid1 -> OnAjaxEvent ->

procedure TMainForm.UniDBGrid1AjaxEvent(Sender: TComponent; EventName: string;
  Params: TUniStrings);
  if EventName = '_taphold' then
    ShowMessage((Sender as TUniDBGrid).CurrRow.ToString + ' selected...');


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.

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...