I am creating the columns using a JSON
I am creating the columns using a JSON
I am creating the columns using a JSON as in this example
For j: = 0 to dmC.qry_clients.FieldCount-1
If dmC.qry_clientes.Fields [j] .Visible then begin
If j> 0 then
Columns: = columns + ',';
+ DmC.qry_clientes.Fields [j] .DisplayLabel + '"}'; '';
End;
If columns <> '' then
Columns: = columns + ',';
Columns: = columns + '{"field": "action", "title": "action", "formatter": actionFormatter, "events": actionEvents}';
Columns: = columns + ']';
How could I add a class or a formatting using JSON?
Replies
Your generated columns array would need to use the
columns.className
property to see a class name.Allan