Jump to content

lema

uniGUI Subscriber
  • Posts

    405
  • Joined

  • Last visited

  • Days Won

    21

Everything posted by lema

  1. I am testing with the original StringGrid Demo (attached is my test). The only change I made, is setting the property goRowSelect to True. The suspendEvent("select") doesn't work with me (v.1.90.0.1567) Sherzod, I don't want to waste your time, don't bother with the issue. I think it's okay unless there's a problem in the application that I can't see right now... Thank you again ! StringGrid Demo.zip
  2. Yes! Thank you, Master ! Note: It works only when Grid rowselect is NOT enabled. To cover this case as well -without knowing if it's the correct way- I changed it to 'suspendEvents(),' and it seems to be working. UniStringGrid1.JSInterface.JSAddListener('viewready', 'function(){this.getSelectionModel().suspendEvents()}');
  3. Exactly. I use the stringGrid just to show some data. No editing, no sync.
  4. Hello Sherzod. I now understand how it works. But, is there a way to completely disable these events, even for a keyboard or mouse click?
  5. Hello, I'm trying to apply it, but it doesn't seem to be working for me. For every keyboard press, it still triggers a HandleEvent. To be sure, am I applying the workaround in the stringGrid->ClientEvents->ExtEvents->Ext.Grid.Panel->afterrender, right? I am using D11.3 and v.1.90.0.1567 Complete
  6. Hello ! Can the same process be applied to the UniStringGrid? I want to disable the Event triggering on every StringGrid scrolling. function select(sender, record, index, eOpts) { return false } The method above doesn't work. I am using D11.3 and v.1.90.1576 Complete
  7. I should mention that the approach I'm using now is at the SQL level using COALESCE( field, '' ). I'm transforming all NULL values to empty strings. However, is there any way at the Delphi or UniGUI level to address this?
  8. Hello to all ! I think that the question is more about Delphi and less about UNIGUI. I searched the forum, but couldn't find anything related. How can we display NULL values in uniDBgrid with filters enabled? The parameter %% returns only the records that have values... I tried with both demos (GridFiltering, GridFiltering-2), after first enabling Grid editing.
  9. @Sherzod, you make it look very easy ! Thank you !
  10. Hello dear @Sherzod I am sending a sample. I used the CalendarPanel example, adding the scripts above. You cannot use the UniDateTimePicker controls in "Add/Edit Event" form. They popup and close immediately.... Obviously, the MainForm.Script causes this problem. Can you suggest any workaround? uniCalendar.zip
  11. Hello dear Sherzod. I'm returning to this topic, because the code below seems to be affecting also the UniDateTimePicker components on the form. It works perfect for the uniCalendar, but the menu of the DateTimePicker control opens and closes automatically, not allowing the user to select a date. Ext.override(Ext.DatePicker, { update: function(date, forceRefresh) { var me = this; this.callParent(arguments); Ext.defer(function() { me.fireEvent("select"); }, 200); } });
  12. I tried it without success... The PythonEngine doesn't seem to be able to operate in a multithreaded environment. The problem is probably the design of the interpreter and the limitation of the GIL. As workaround, I put it as a singleton in ServerModule....
  13. Hello to all ! Do you have any experience with Python for Delphi in uniGUI? I am going to use P4D as scripting (server-side) in order to communicate and act with some network devices. What difficulties can I expect to cope with?
  14. Hello. My wrong phrase, it's not "too many..". Nothing abnormal. It's just the normal behavior of one Event on every grid moving (scrolling). But in my case, I need the less network traffic and best optimization, so I disabled the events with your approach. The question is, how can I get the underlying db record without syncing? Is there any workaround to get the appropriate fields (e.g. ID) from grid itself? Edit: I am using v. 1.90.0.1563 Complete
  15. Hello ! I am also have disabled the dbgrid syncing (there were too many HandleEvents on scrolling), via: function select(sender, selected, eOpts) { return false } but, what can I do in case that I need to sync ondemand ? e.g. If I want to get the current record of underlying dataset. TIA, Lema
  16. Hi to all ! As title says, the https://forums.unigui.com doesn't seem to work. I can access the forum only via http Is only me?
  17. lema

    A Happy New Year

    Best wishes for a safe and healthy 2022 !
  18. Thank you ! I didn't try it yet, but it is really impressive that you can analyze, find and implement it so fast. Also, I wish, I could understand that JavaScript stuff... I wonder, where can I find such information? Sencha Ext JS docs? forums? Could you please give me a hint?
  19. Hello ! As title says, is there any way to select -or mark- a week in uniCalendar (as screenshot below). No need to get the range, or dynamically selection. I just want to use it in conjunction with uniCalendarPanel (in week mode). (running v.1.90.0.1554) TIA, Lefteris.
  20. Hi, I am at Athens/Greece on EEST(UTC +3)
  21. Hello, I have the same behavior in different apps built with 1.90.0.1537
  22. Hello, I have a strange behavior with the UniDateTimePicker. If you add the following code on uEdits of MegaDemo and play around for a while, the error "The time in this field must equal to or after 09:00:00" will popup ! Delphi 10.2 uniGUI 1.90.0.1549 procedure TuEditsFrame.UniFrameCreate(Sender: TObject); begin UniDateTimePicker2.ClientEvents.UniEvents.Values['beforeInit'] := 'function beforeInit(sender, config)' + '{' + ' config.minValue = ''09:00''; ' + ' config.maxValue = ''15:00''; ' + '}'; end;
×
×
  • Create New...