Hi to all…
I started to use FlexiGrid few weeks ago and I am preety happy with functionality of it.
Have one issue and need someone to help me how to solve it, and on the net I didn’t find any example of this. The problem is that I have in one column of table color that is represented by name or code (red, green etc.). I need to color that cell with color that is in it. Is it possible to do that in Flexigrid?
$(document).ready(function() {
$("#newTable").flexigrid({
url: 'agendaTipoAppuntamentoInitJson.do',
dataType: 'json',
colModel : [
{display: 'ID', name : 'idTipoAppuntamento', width : 40, sortable : false, align: 'center', hide: true},
{display: 'Codice', name : 'codice', width : 60, sortable : false, align: 'left'},
{display: 'Descrizione', name : 'descrizione', width : 130, sortable : false, align: 'left'},
{display: 'Descr. breve', name : 'descrBreve', width : 80, sortable : false, align: 'left'},
{display: 'Colore', name : 'colore', width : 80, sortable : false, align: 'left'},
{display: 'ID Struttura', name : 'idStruttura', width : 60, sortable : false, align: 'left', hide: true},
{display: 'Descr. Struttura', name : 'descrizioneStruttura', width : 150, sortable : false, align: 'left'},
{display: 'ID Spec', name : 'idSpecializzazione', width : 60, sortable : false, align: 'left', hide: true},
{display: 'Descr. Spec', name : 'descrizioneSpecializzazione', width : 150, sortable : false, align: 'left'},
],
usepager: true,
title: 'Gestione tipi appuntamento',
useRp: true,
rp: 15,
showTableToggleBtn: true,
width: 'auto',
height: 'auto',
singleSelect: true,
click: editMe
}); });
This is def. for table.
Thanks…