Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IWGrid.RefreshAsyncRender
#5
(07-17-2022, 12:41 AM)Alexandre Machado Wrote: This issue has been fixed and will be available in the next update.

Cheers

Thanks for quick response!

In this context: Why are the identifiers in the EventParams not generated uniformly?

The component name (in frames plus "_" plus OwnerFrame.Name) is usually specified in EventParams of AsyncEvents.

In the events of TIWCheckBox / TIWSelect, however, the component name is extended by "_CHECKBOX" / "_SELECT".

Possibly the EventParams must therefore be evaluated as follows:

procedure TForm.IWControlAsyncChange (Sender: TObject; EventParams: TStringList);
var
  FName : string;
  FValue: string;
start
  FName:=TIWCustomControl(Sender).IWCLName;

  if Sender is TIWSelect      then FName:=ReplaceStr(FName, 'IWCL', '_SELECT'     ) else
  if Sender is TIWCheckBox then FName:=ReplaceStr(FName, 'IWCL', '_CHECKBOX') else FName:=ReplaceStr(FName, 'IWCL', '');

  FValue:=EventParams.Values[FName];

  ...
  ...

end;


Have a nice day
The way to success is always under construction ... but i see a light at the end of the tunnel  Idea Big Grin
Reply


Messages In This Thread
IWGrid.RefreshAsyncRender - by Lorbass - 07-14-2022, 03:58 PM
RE: IWGrid.RefreshAsyncRender - by Lorbass - 07-18-2022, 11:45 AM
RE: IWGrid.RefreshAsyncRender - by Lorbass - 07-27-2022, 04:29 PM
RE: IWGrid.RefreshAsyncRender - by Lorbass - 07-28-2022, 07:12 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)