CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

DropDown / ComboBox Ex in Grid Row for Editing

by MCarver » 12 May 2016 15:42

CG Gurus,

Is it currently possible to implement in row editing, which enables the ability to select options from combo boxes once in edit mode? I have been unable to find any discussion on this ability. If so, how can this be accomplished? If not, is it unreasonable to request this feature? I see where one can bind to an object using lCol.EditOptions.Control, but it appears this only applies to editing within the auto generated dialog box.

Please Advise.

Regards,
Monte Carver
MCarver
 
Posts: 48
Joined: 27 Sep 2013 19:15

by MCarver » 12 May 2016 22:32

After a fair bit of research and trial and error, I am able to effect a change to the underlying DataSet. However, upon rendering the grid, the current values are not displayed.

Please advise how to remedy this problem.. The OnProviderGetValue appears to have no effect, which I suspect is because the column is bound to a control.

Thank You
Monte Carver

OnCreate:
Code: Select all
  lCol := gd2Sub.JQGridColumns.ItemsByName['COMPLETED_USER_ID'];
  lCol.Editable := True;
  lCol.EditOptions.Control := cbCompUserGD;
  lCol.EditOptions.ControlAlign := alClient;
  lCol.Formatter := gcfControl;
  lCol.FormatOptionsControl.ControlTemplate := cbCompUserGD  // a CGDropDown;


OnProviderGetValue
Code: Select all
  if AFieldName = 'COMPLETED_USER_ID' then
  begin
    AHandled := True;
    AValue   := FCDS2Sub.FieldByName('SALC_COMPLETED_USER').AsString;
  end;
MCarver
 
Posts: 48
Joined: 27 Sep 2013 19:15

by Alexander Bulei » 16 May 2016 16:56

Hi MCarver,

I'm preparing some demo, how to use the custom controls...
It will be very useful for users, but will take some time.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by MCarver » 16 May 2016 22:55

Thank you for your attention on this matter. I (we) look forward to the demo.
MCarver
 
Posts: 48
Joined: 27 Sep 2013 19:15

by MCarver » 06 Jun 2016 19:26

What is your ETA of a demo?
MCarver
 
Posts: 48
Joined: 27 Sep 2013 19:15


Return to JQGrid

cron

Who is online

Users browsing this forum: No registered users and 10 guests

Contact Us.