I am creating the columns using a JSON

I am creating the columns using a JSON

sistemasuzisistemasuzi Posts: 1Questions: 0Answers: 0
edited January 2017 in Free community support

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

  • allanallan Posts: 63,844Questions: 1Answers: 10,518 Site admin

    Your generated columns array would need to use the columns.className property to see a class name.

    Allan

This discussion has been closed.