How Do I Create a Checkbox in a Column?
This Lesson presents how to create a column containing a checkbox button in a data grid, using the Data Grid Helper Plugin.
Opening Columns Builder
Building Columns in the Columns Builder Preview
Button Creation Using Classic Objects and Column Content
Update Columns Builder Preview
Click the Update button to refresh the Column Builder Preview content (1).
A field named "_ColumnData_" will also be automatically added in the Column Content.
We have no need of that field in this lesson. Remove it by selecting it's name in the Object List of the Column Content Area (2), after the field is selected in the Column Content, on your keyboard, press the Delete or suppr key.
Editing Checkbox Button Properties
Using DGH To Build The Required Script
Confirming the warning message
Update Column Content Then Apply The Column Builder Preview To The DataGrid
Test The Result
To test the result, open the Contents tab of the LiveCode's Property Inspector, then input some data.
Separate data of each column by a tab, and each line by a return.
Note: The Checkbox will be checked when the checkbox column value is true, and unchecked when false.
Congratulations! You have developed your first custom column in a DataGrid, without entering any script.
0 Comments
Add your comment