Logic field view

Hi,
In grid I have some fields as logical - 1 or 0. Grid get data from MySql connector and here I did that :

$grid->set_options( “svarbus”, array( 0 => $cNo, 1 => $cYes ) );

This field is read only and I did this field at first “ro” type, bet then I can see only 1 or 0 values. Then I tried coro - now I can see Yes/No values , can select filter in header ( #connector_select_filter - this possibility must be ) . But here it’s contraindication - the field must be read only , but with “coro” type user can edit this field . How to solve that ?

Another solution can be images ( red/green ) on this field . But can’t find any sample how to do img type field with remote data ( from MySql connector ) .

Many thanks in advance …

Ok, found the sample :

viewtopic.php?f=2&t=30865&p=97286&hilit=readonly#p97286

It solved “readonly” problem .

How about img type field sample with remote data through dataconnector ?

Regards ! :slight_smile:

You may create your own custom exCell type with any needed logic.
Here you can find a tutorial with some examples:
docs.dhtmlx.com/doku.php?id=dhtm … formatters