Hi community, Is it possible to have a read-only column?, I have my GRID and I would like "id_seccion" to be read-only and AutoValue When adding an item.
<?php
$col1 = new EJ\Grid\Column();
$col1->field('id_seccion')->headerText('Id de la Seccion')->textAlign('center')->isPrimaryKey(true)->width(150)->;
$col2 = new EJ\Grid\Column();
$col2->field('nombre')->headerText('Nombre')->editType('numericedit');
$col3 = new EJ\Grid\Column();
$col3->field('activo')->headerText('Activa')->textAlign('center')->edittype('dropdownedit')->width(150);
$gridColumns = array($col1,$col2,$col3);
$grid = new EJ\Grid('Grid');
$edit =new EJ\Grid\EditSetting();
$toolbarItems = array("add","edit","delete","update","cancel");
$toolbar= new EJ\Grid\ToolbarSetting();
$dataManager = new EJ\DataManager();
$url = "http://sekaisoft.com/navigation/db_select_seccion.php";
$dataManager->url($url.'?action=getData')->removeurl($url.'?action=delData')->updateurl($url.'?action=updateData')->inserturl($url.'?action=insertData')->adaptor('UrlAdaptor');
echo $grid -> dataSource($dataManager)->allowPaging(true)->columns($gridColumns)->editSettings($edit->allowEditing(true)->allowDeleting(true)->allowAdding(true))->toolbarSettings($toolbar->showToolbar(true)->toolbarItems($toolbarItems))->render();
?>