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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...