Jump to content

unimdbgrid events


jahlxx

Recommended Posts

Hello!

First you have to add UnimDBGrid->ClientEvents_>ExtEvents->childtap

function childtap(sender, location, eOpts)
{
   ajaxRequest(sender, '_cellclick', ["colIndx="+location.columnIndex]);
}

2nd you have to add the OnAjaxEvent-method like this:

procedure TMainmForm.UnimDBGrid1AjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings);
VAR
    strClickObject : STRING;
BEGIN
    IF (EventName='_cellclick') THEN BEGIN
        strClickObject:=Params.Values['colIndx']; //holds the index of the column (from 0 to n)
        IF (strClickObject='1') THEN BEGIN // for ex. if the 2nd column is clicked
         :
        END;
    END;
end;

Hope that helps...

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