lema
-
Posts
405 -
Joined
-
Last visited
-
Days Won
21
Content Type
Profiles
Forums
Events
Posts posted by lema
-
-
20 minutes ago, Sherzod said:
Hello,
I couldn't reproduce. Works for me.
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 !
-
4 hours ago, Sherzod said:
Okay, then try this approach:
procedure TMainForm.UniFormCreate(Sender: TObject); begin UniStringGrid1.JSInterface.JSAddListener('viewready', 'function(){this.getSelectionModel().suspendEvent("select")}'); end;
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()}');
-
23 minutes ago, Sherzod said:
Hello,
If the stringgrid is in read-only mode, and not related to other controls, and synchronization with the server is not important to you, then I think it is possible to disable these events.
Exactly. I use the stringGrid just to show some data. No editing, no sync.
-
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?
-
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 -
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
-
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? -
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. -
@Sherzod, you make it look very easy !
Thank you !- 1
-
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?
-
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); } });
-
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....
-
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?
-
38 minutes ago, Sherzod said:
Hello,
Describe the situation in more detail, and how many requests?
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
- 1
-
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
-
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?
-
Best wishes for a safe and healthy 2022 !
- 2
-
1 hour ago, Abaksoft said:
Many Thanks Maestro.
You should edit a book :
"Developing Client Side with Unigui"
and i will buy it
Not a bad idea !
-
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?
-
9 hours ago, Sherzod said:
Hello,
Do you want to color the row for the selected date?
Hello !
Yes, exactly that.
-
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.
-
4 minutes ago, Sherzod said:
Hello,
I couldn't reproduce this issue.
What's your timezone?
Hi,
I am at Athens/Greece on EEST(UTC +3)
-
3 hours ago, Sherzod said:
Hello,
Did it work in previous versions?
Hello,
I have the same behavior in different apps built with 1.90.0.1537
-
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;
How to delay stringgrid send event back to server when change select row?
in General
Posted
It works exactly as I need. Thank you!