Telegram_2020-07-03T08

<< Click to Display Table of Contents >>

Navigation:  Telegram > 2020 > 07 > 03 >

Telegram_2020-07-03T08

Telegram link

 

2020-07-03T08:15:28

 

type: pre procedure TFrmMain.IWComboBox1AsyncChange(Sender: TObject;

 

EventParams: TStringList);

 

begin

 

case IWComboBox1.ItemIndex of

 

0: PopulateCountry;

 

1: PopulateCustomer;

 

else

 

begin

 

IWGrid1.Clear;

 

IWGrid1.Caption := '< No Data >';

 

IWGrid1.RowCount := 1;

 

IWGrid1.ColumnCount := 1;

 

end;

 

end;

 

WebApplication.CallBackResponse.AddJavaScriptToExecuteAsCDATA(

 

'$(\#TBLIWGRID1\).DataTable();'

 

);

 

end; language:

 


 

Telegram link

 

2020-07-03T08:16:10

 

type: mention_name Sokel user_id: 978150881 change type: code OnChange to type: code AsyncChange

 


 

Telegram link

 

2020-07-03T08:50:36

 

Both AsyncChange and AsyncClick work now. Thank Jose

 


 

Telegram link

 

2020-07-03T08:51:20

 

????

 


 

Telegram link

 

2020-07-03T08:51:58

 

I prefer AsyncClick because it works even when the ComboBox contains only 1 item in the list