Jump to content

How to activate cell editing in UniDBGrid


9223000

Recommended Posts

Hello!
How to activate cell editing in UniBGrid?
 
The cell is activated for editing if the user "Press Enter" or "mouse left button double clicks"
 
How can one of these events be implemented programmatically, after WebFocus on UniDBGrid?
 
I'm trying to do this:

 

procedure TMainForm.UniBitBtn1Click(Sender: TObject);
begin
  with UniMainModule.FDQ_regProjectSheets do
  begin
    Append;
      FieldByName('regProject_ID').Value := ParamByName('iProjectID').AsInteger;
      FieldByName('NameShort').Value := 'New products list';
    Post;
  end;
  UniDBGrid_ProjectSheets.WebFocus;
  UniSession.AddJS('$("#'+UniDBGrid_ProjectSheets.JSName+'"'+').dblclick();');
// UniSession.AddJS('$("#'+UniDBGrid_ProjectSheets.JSName+'"'+').trigger(jQuery.Event("keypress", {which: 13}));');
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...