I use ProjectGridMultiSelectAlternative as an example.
And if i create in real code. I have problems.
- Code: Select all
chkSel := TIWCGJQCheckBoxEx.Create(self);
chkSel.Name := 'chkSel';
chkSel.RenderInvisibleControls := True;
chkSel.Visible := false;
chkSel.Width := 18;
chkSel.Height := 17;
chkSel.Caption := '';
chkSel.JQCheckExOptions.OnChange.OnEvent := chkSelJQCheckExOptionsChange;
Col := Fgrid.JQGridColumns.Add;
Col.Fixed := True;
Col.Idx := 'Sel';
Col.Name := 'Sel';
Col.Width := 24;
Col.Formatter:= gcfControl;
Col.FormatOptionsControl.ControlTemplate:= chkSel;
Col.FormatOptionsControl.CreateCellsOnRender:= True;
Col.OnUpdateCellControl:= SelUpdateCellControl;
Col.Align := gaCenter;
if I TIWCGJQCheckBoxEx put on the form there is no such problem. But I need to do in real code.