FNCDataGrid Checkbox column error

Hi,

I have a blank project to which I have added an FNCDataGrid and added the following routine:

procedure TForm4.WebFormShow(Sender: TObject);
var
  col:TTMSFNCDataGridColumn;
  i:integer;
begin

  TMSFNCDataGrid1.BeginUpdate;
  TMSFNCDataGrid1.LoadSampleData;

  col:=TMSFNCDataGrid1.Columns.Add;
  col.ReadOnly:=True;
  col.Editor:=getNone;
  TMSFNCDataGrid1.AddDataCheckBoxColumn(TMSFNCDataGrid1.Columns.Count-1);
  for i:=1 to TMSFNCDataGrid1.RowCount-1 do
    begin
      TMSFNCDataGrid1.Cells[col.index, i]:=False;
      TMSFNCDataGrid1.ControlPositions[col.index, i]:=gcpCenterCenter;
    end;

  TMSFNCDataGrid1.EndUpdate;
end;

This seems to load as expected, but if I start clicking rapidly on the checkboxes, the following happens:

The checkboxes disappear and an error is produced.
Is this an error or have I done something incorrect?

We are able to reproduce this and are currently investigating.

Thanks for that Pieter!

Also, as an aside, if I do the same code as above but add:
TMSFNCDataGrid1.controlaligns[col.index, i]:=gcaClient;

The checkboxes will left justify on hovering the mouse over them.

Thanks for the additional code. As it seems, it's an asynchronous destroy behavior of WEB controls, so we'll need additional time to properly find a solution. Stay tuned

We have fixed the issue, next version of TMS FNC UI Pack will address this. Thanks for reporting.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.