Jump to content

lema

uniGUI Subscriber
  • Posts

    405
  • Joined

  • Last visited

  • Days Won

    21

lema last won the day on October 16 2022

lema had the most liked content!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

lema's Achievements

Advanced Member

Advanced Member (4/4)

90

Reputation

  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
×
×
  • Create New...