CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Mixed mode (DB/manually) possible with TIWCGJQGridDataSetPro

by jorgo » 20 Jun 2017 10:55

Hallo,

I'm using an TIWCGJQGridDataSetProvider to fill a TIWCGJQGrid. I have 4 columns.
Column 2 to 4 are filled from database (valid col names from DB). That's ok.

1.) Now I want to show checkboxes (manually) in the 1. column in some rows (not all grid rows).
Is this possible with this Provider or have I to use a TIWCGJQGridCellsProvider?

2.) During the course of the calculation I want to show the progress with checking this checkboxes.
I have a Timer to work off step by step of the calculation.
With which prop. or method can I check/uncheck one checkbox?

Kind regards
jorgo
 
Posts: 108
Joined: 13 Jul 2016 15:57

by Jorge Sousa » 20 Jun 2017 11:14

Hello

You can use the event provider.OnGetValue
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by jorgo » 20 Jun 2017 13:39

Hi jorge,

thx I can fill the grid on different ways.


The basic problem is to show/hide a checkbox in alternating rows (same column of grid).
(Now I can choose between plain text or showing a checkbox.)

Alternative idea:
Is it possible to create an own checkbox for every cell of the grid?

Kind regards
jorgo
 
Posts: 108
Joined: 13 Jul 2016 15:57

by assapan » 20 Jun 2017 13:46

jorgo wrote:Hallo,

I'm using an TIWCGJQGridDataSetProvider to fill a TIWCGJQGrid. I have 4 columns.
Column 2 to 4 are filled from database (valid col names from DB). That's ok.

1.) Now I want to show checkboxes (manually) in the 1. column in some rows (not all grid rows).
Is this possible with this Provider or have I to use a TIWCGJQGridCellsProvider?

2.) During the course of the calculation I want to show the progress with checking this checkboxes.
I have a Timer to work off step by step of the calculation.
With which prop. or method can I check/uncheck one checkbox?

Kind regards


Hi jorgo , you can have a look to this viewtopic.php?f=34&t=3352
Want to visit Ardeche http://leclosdelarc.fr/index.php
The Pont d’Arc Cavern http://en.cavernedupontdarc.fr
Image
User avatar
assapan
 
Posts: 600
Joined: 16 Dec 2013 12:04
Location: France

by jorgo » 20 Jun 2017 14:40

Thx assapan,

looks good.


I want to use the standard checkboxes from grid component.
Is it possible to hide this standard checkboxes, or has it to be custom controls?

1.) Whats the name of this standard checkboxes?
2.) Whats the type of this standard checkboxes?

Kind regards
jorgo
 
Posts: 108
Joined: 13 Jul 2016 15:57

by Jorge Sousa » 20 Jun 2017 18:13

Hi Jorgo

you can set Col.Formatter = gcfCheckBox

and for editing

Col.EditType = gcetCheckBox
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58


Return to JQGrid

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.