CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

ProjectGridMultiSelectAlternative in real code

by legend » 11 Feb 2019 14:57

Hi.

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.
You do not have the required permissions to view the files attached to this post.
legend
 
Posts: 9
Joined: 10 Sep 2018 12:34

by legend » 12 Feb 2019 08:46

Hi.
I found the source of the problem.

In the IWCGJQGrid unit in the implementation you need to add IWCGJQCheckBox

:P
legend
 
Posts: 9
Joined: 10 Sep 2018 12:34


Return to JQGrid

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.