CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

iwcgjqgrid cellvalues question

General discussion

by hsbelli72 » 25 May 2014 22:56

hi, how obtaing the ACol of cellvalues?. need when i select a cell of iwgrid retrive a value of this cell..
try use this

valor:=iwcgjqgrid1.cellvalues[acol,arow];

if other way to obtaing the cells value, please tellme..

regards
hsbelli72
 
Posts: 297
Joined: 14 Mar 2013 18:10

by Jorge Sousa » 26 May 2014 09:35

Hi

how obtaing the ACol of cellvalues?


Is the Column.Index
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by hsbelli72 » 26 May 2014 13:13

hi, is iwcgjqgrid1.column.index?

regards
hsbelli72
 
Posts: 297
Joined: 14 Mar 2013 18:10

by Jorge Sousa » 26 May 2014 15:11

hi

No it's one given column's index
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by hsbelli72 » 26 May 2014 17:05

hi, but when select a cell how know the column index.. please can sendme a simple example..

regards
hsbelli72
 
Posts: 297
Joined: 14 Mar 2013 18:10

by Jorge Sousa » 26 May 2014 17:18

hi

If you're using the event JQGridOptions.OnCellSelect, you can see that

JQGridOptions.OnCellSelect.Arguments = 'rowid,iCol,cellcontent,e' in the inspector at design-time

so if you add a JQGridOptions.OnCellSelect.BrowserParam with ServerName = 'ColIndex' (for instance) and .Script='iCol'

you'll receive the column index in AParams.Values['ColIndex'] in the event handler.
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by hsbelli72 » 27 May 2014 15:10

hi, excellent!. run ok..

thank you

regards
hsbelli72
 
Posts: 297
Joined: 14 Mar 2013 18:10


Return to General - Archive

Who is online

Users browsing this forum: No registered users and 5 guests

Contact Us.