Jump to content

Readonly combobox


Cristian87

Recommended Posts

15 hours ago, Cristian87 said:

ReadOnly property on the unimComboBox doesn't it work like it does for uniComboBox?

One possible solution for now:

procedure TMainmForm.UnimFormCreate(Sender: TObject);
begin
  with UnimComboBox1 do
    if ReadOnly then
      JSInterface.JSAddListener('painted', 'function(){this.setEditable(false)}')
end;

 

Link to comment
Share on other sites

47 minutes ago, Cristian87 said:

Yes I do

Try to use this approach for now:

1. Use Enabled property instead of ReadOnly.

2. 

procedure TMainmForm.UnimFormCreate(Sender: TObject);
begin
  with UnimComboBox1 do
    JSInterface.JSConfig('disabledCls', ['xx']);

end;

 

Link to comment
Share on other sites

14 hours ago, Sherzod said:

Hello,

Can you please explain in more detail?

Hi Sherzod,

I reverted back to .1545 from .1546... dbLookUpComboBox (readonly) still the list drop down and can still select.. when it should be not since it is readonly.

I will try the new .1547 and will let you know.

Thanks.

Link to comment
Share on other sites

Hi @Sherzod,

 

On .1545...47

if dbLookUpComboBox WITH Trigger, the ReadOnly property still showing the dropdown ListSource.

if WITHOUT Trigger and ReadOnly the Listsource is hidden and NOT showing the ListSource.. this is OK if no trigger.

 

How can I make dbLookUpComboBox on READONLY but still clickable Triggers?

 

Regards.

Link to comment
Share on other sites

2 hours ago, fraxzi said:

On .1545...47

if dbLookUpComboBox WITH Trigger, the ReadOnly property still showing the dropdown ListSource.

if WITHOUT Trigger and ReadOnly the Listsource is hidden and NOT showing the ListSource.. this is OK if no trigger.

 

How can I make dbLookUpComboBox on READONLY but still clickable Triggers?

Hello,

We will analyze this behavior.

Link to comment
Share on other sites

  • 3 months later...
×
×
  • Create New...