Jump to content

Hayri ASLAN

Moderators
  • Posts

    1578
  • Joined

  • Last visited

  • Days Won

    134

Everything posted by Hayri ASLAN

  1. One possible solution: UniToolButton -> ClientEvents -> ExtEvents -> mousedown function mousedown(sender, x, y, eOpts) { ActiveCmp = Ext.get(Ext.Element.getActiveElement()); } UniToolButton -> ClientEvents -> ExtEvents -> click function click(sender, e, eOpts) { ActiveCmp.focus(); }
  2. Unimainmodule.onnewcomponent bolumunde yaratilan frame yada formlari takip edebilirsiniz
  3. Merhaba Her formun onCreate ve ondestroy olaylarına kod yazarak yapabilirsiniz. Unigui bunların logunu tutmuyor.
  4. Hello I added this to our board. We will add this.
  5. As your query returns only 50 rows, unigui will show the total 50. You should use only paging from unigui side. Are there any problems about paging?
  6. Hello In your example please delete the code in ClientEvents and onDrawCell. Please use below code. procedure TMainForm.UniFormCreate(Sender: TObject); var I: Integer; begin for I := 0 to 5 do begin UniStringGrid1.Cells[1, i+1] := '<div id="note'+IntToStr(I)+'" style="cursor:pointer;" onclick="javascript:ajaxRequest('+UniStringGrid1.JSName+', ''OnNoteClick'', {recno: '+IntToStr(I)+'})">'+ '<i class="fas fa-sticky-note"></i>'+ '</div><hr/>'+ '<div id="heart'+IntToStr(I)+'" style="cursor:pointer;" onclick="javascript:ajaxRequest('+UniStringGrid1.JSName+', ''OnHeartClick'', {recno: '+IntToStr(I)+'})">'+ '<i class="fas fa-heart"></i>'+ '</div>'; end; end; procedure TMainForm.UniStringGrid1AjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin if EventName='OnNoteClick' then ShowMessage('Note Clicked. Row : '+Params['recno'].AsString) else if EventName='OnHeartClick' then ShowMessage('Heart Clicked. Row : '+Params['recno'].AsString); end;
  7. It is based on the css code. For example if you have "!important" in one of them, it will take effect. BodyCls will apply the css class to body of the component. cls will apply to very top and it will effect all inherited html elements. What are you trying to achieve? Can you explain?
  8. Hello We fixed a chrome related issue in the one of the newer version. If you update to latest, this problem will be fixed.
  9. Hello Please check UniSweetAlert.Execute function. You will understand how we are waiting for the result in the thread.
  10. We have an example in the forum that uses esegece. We will try to find a free Websocket server app and it may not be Delphi library.
  11. We need to work on it. Can you explain what you need exactly? Do you have a screenshot?
  12. Hello Why are you using uniDBGrid to export? Fastreport will be suitable for this.
  13. Can you please adjust your email?
  14. Hello Can you please create a test case? We don't have NexusDB component so can you reproduce it without NexusDB?
  15. You can use this code before the component rendered. That means anywhere before OnReady fired.
  16. Hello You may record a session while "play" by scrolling and browsing continuously on a grid and run it with stress test tool to see how your app is handling it
  17. Hello You can try below code. You can play with css to customize. UniServerModule.CustomCSS .button--loading .x-btn-inner { visibility: hidden; opacity: 0; } .button--loading::after { content: ""; position: absolute; width: 16px; height: 16px; top: 0; left: 0; right: 0; bottom: 0; margin: auto; border: 4px solid transparent; border-top-color: #000000; border-radius: 50%; animation: button-loading-spinner 1s ease infinite; } @keyframes button-loading-spinner { from { transform: rotate(0turn); } to { transform: rotate(1turn); } } UniButton1->ClientEvents->UniEvents->ajaxRequest : function ajaxRequest(sender, url, data) { sender.setDisabled(true); sender.addCls('button--loading'); } UniButton1->ClientEvents->UniEvents->ajaxCallback : function ajaxCallback(sender, response) { sender.setDisabled(false); sender.removeCls('button--loading'); } To test, you can add sleep into button click event. procedure TMainForm.UniButton2Click(Sender: TObject); begin Sleep(5000); end;
  18. Hello You can draw polygon and markers. But marker cluster is not supported yet.
  19. You can use UnimFileUploadButton and set the capture and accept properties.
  20. Hayri ASLAN

    RemoteQuery

    Hello Nope. It is in our board but i can't tell you the exact time as it is not planned yet.
  21. Hello Which version and build are you using?
  22. Set Chrome to open PDF rather than download them?
  23. Hello You may search on google. I don't have an answer for this.
×
×
  • Create New...