Jump to content

CheckChangeDelay - unimcombobox


PS1

Recommended Posts

On 2/12/2024 at 6:07 PM, PS1 said:

For example on unimcomboBox ?

Hello,

One possible solution for now I think:

1. Remove the assigned "change" event and

2. move the code to OnAjaxEvent as follows

procedure TMainmForm.UnimComboBox1AjaxEvent(Sender: TComponent;
  EventName: string; Params: TUniStrings);
begin
  if EventName = '_change' then
  begin
    // your code 
  end;

end;

3. UnimComboBox1.ClientEvents.UniEvents ->

function afterCreate(sender)
{
    sender.on('change', function(){ajaxRequest(this, '_change')}, sender, {buffer: 500});
}

 

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...