View Full Version : Grid checkbox
Is there any way we could place a checkbox inside a cell of the grid object?
This is really important for yes/no type of fields.
Imagine Programming
07-08-2008, 12:16 PM
I think it is not possible, i would like that aswell...
I also would like a playlist type of Grid:)
pakapaka
07-08-2008, 12:20 PM
I am very doubtful...I spents days trying to insert a simple icon into a Datagrid cell but did not succeed.
If anyone in the forum can find a way to do this then send me a private message, I am willing to pay for this functionality.
...I am not referring to an html table, I need to use the Datagrid (which is populated from an Access table)
holtgrewe
07-09-2008, 02:28 PM
This is not an ideal work-around, but you may be able to clean it up and make it work for you...
This may be possible for icons / png images also...that I didn't test.
Determining where to place the checkbox in relationship to the grid may be a bigger problem...
Imagine Programming
07-09-2008, 03:38 PM
Nice example but it would be so much work to get it right:p and with scrolling enabled it would really be a pain in the....
Suggestion for the IndigoRose:
Add some variable type checking to the Grid object:
- if string is passed, handle the text as is now, sort column as text
- if lua number is passed, align the cell right, sort by numeric value
- if boolean type is passed, render a checkbox, sort by checked
- if table of [text, data] pairs is passed, render a properly aligned combobox
The first three ones are obvious. The fourth one would receive this kind of data:
[['bule', '0'], ['has', '1'], ['some', 'great'], ['ideas', '666']]
Any comments on this rather strait forward approach?
pakapaka
07-10-2008, 01:27 AM
..yes the real problem is the scrolling. I have a table column with over 150 rows of data using 5-6 different icons. Many thanks for your efforts but it does not seem doable for large quantities of data
Dermot
07-10-2008, 01:36 AM
Suggestion for the IndigoRose:
Add some variable type checking to the Grid object:
- if string is passed, handle the text as is now, sort column as text
- if lua number is passed, align the cell right, sort by numeric value
- if boolean type is passed, render a checkbox, sort by checked
- if table of [text, data] pairs is passed, render a properly aligned combobox
The first three ones are obvious. The fourth one would receive this kind of data:
[['bule', '0'], ['has', '1'], ['some', 'great'], ['ideas', '666']]
Any comments on this rather strait forward approach?
That plus icon support would very very nice. I would also like to throw in cell merging and cell text wrapping.
Talkin about the Grid... is there any chance that IR at least adds an option for
no-border mode like the one on the input object (border, flat, none)? Please.... :o
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.