jahlxx Posted September 26, 2022 Share Posted September 26, 2022 Hi. Where is unimdbgrid cell click event? and/or actioncolumns? Thanks. Quote Link to comment Share on other sites More sharing options...
likemike Posted September 26, 2022 Share Posted September 26, 2022 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... Quote Link to comment Share on other sites More sharing options...
jahlxx Posted September 26, 2022 Author Share Posted September 26, 2022 Ok. Thanks. 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.