Jump to content

Sherzod

Moderators
  • Posts

    19517
  • Joined

  • Last visited

  • Days Won

    630

Everything posted by Sherzod

  1. Sherzod

    TUniDBGrid

    Or do you want to completely hide the menu?
  2. Sherzod

    TUniDBGrid

    Hello, One possible solution I think UniDBGrid1.JSInterface.JSAssign('hideable', [False], UniDBGrid1.Columns[1].JSColumn); UniDBGrid1.JSInterface.JSAssign('hideable', [True], UniDBGrid1.Columns[1].JSColumn);
  3. Hi, Immediately run the code or warn the user: UniMainModule -> BackButtonAction = bbaWarnUser
  4. Hello, Maybe you can try something like this... // 'FIRST', 'PRIOR', 'NEXT', // 'LAST', 'INSERT', 'DELETE', 'EDIT', 'POST', 'CANCEL', 'REFRESH', 'APPLYUPDATES', 'CANCELUPDATES' procedure TMainForm.UniFormReady(Sender: TObject); var btnName: string; btnHint: string; begin btnName := 'FIRST'; //uni_dbn_xxx btnHint := 'First'; UniSession.AddJS('Ext.ComponentQuery.query("[uname=uni_dbn_'+ btnName +']").forEach(function(el){el.setTooltip("'+ btnHint +'")});'); btnName := 'PRIOR'; //uni_dbn_xxx btnHint := 'Prior'; UniSession.AddJS('Ext.ComponentQuery.query("[uname=uni_dbn_'+ btnName +']").forEach(function(el){el.setTooltip("'+ btnHint +'")});'); //... end;
  5. Hello, By default the FireDAC application works in auto-commit mode, where a transaction is automatically started by FireDAC when it is required, and is committed on the successful command execution or rolled back on a failure.... http://docwiki.embarcadero.com/RADStudio/Rio/en/Managing_Transactions_(FireDAC)
  6. Also you can try to use only this config, without CSS: with TUniPanel.Create(Self) do begin ... JSInterface.JSConfig('titlePosition', [1]); ... end;
  7. Hi, What code is not executed, can you clarify?
  8. ... ClientEvents.ExtEvents.Clear; ClientEvents.ExtEvents.Add ('afterrender=function afterrender(sender, eOpts){this.addCls("my-panel");}'); ...
  9. Hello, Which error do you get? Did you assign a name to the component?
  10. UniHTMLMemo -> ShowToolbar = False (BorderStyle = ubsNone)
  11. Hello, JSCode for example: MainForm.UniHTMLMemo1.iframeEl.dom.contentDocument.documentElement.scrollHeight
  12. Hello, Which edition and build of UniGUI are you using?!
  13. Hi, First of all, can you please open a ticket in support portal as feature request? http://jira.fmsoft.net/servicedesk/customer/portal/4 And, can you tell me how do you add nodes to the treeview, designtime or runtime? Can you provide part of your code or a simple testcase?!
  14. Hi Erich, Sorry, what type of app? Can you explain in more details? Can you make a simple testcase for reproduce?!
  15. private { Private declarations } FInputType: string; procedure TMainForm.UniComboBox1TriggerEvent(Sender: TUniCustomComboBox; AButtonId: Integer); begin if AButtonId = 0 then begin // Вам нужна переменная, которая будет хранить пред.значение if FInputType = 'password' then begin Sender.JSInterface.JSCall('inputEl.el.dom.setAttribute', ['type', 'text']); FInputType := 'text'; end else begin Sender.JSInterface.JSCall('inputEl.el.dom.setAttribute', ['type', 'password']); FInputType := 'password' end; end; end; procedure TMainForm.UniFormCreate(Sender: TObject); begin UniComboBox1.JSInterface.JSConfig('inputType', ['password']); FInputType := 'password' end; Может как-то так...
  16. Пожалуйста, можете уточнить?
  17. http://jira.fmsoft.net/servicedesk/customer/portal/4
  18. Добрый день, procedure TMainForm.UniFormCreate(Sender: TObject); begin UniComboBox1.JSInterface.JSConfig('inputType', ['password']); end; ?
  19. Hello, Are you using frames?
×
×
  • Create New...