Hi,
I have a Grid and populate it’s data with RoR. I’m having issues with some fields. I have 3 columns which values can be selected by a combobox (getCombo - coro type).
// Combo - Resultado
grid.getCombo(6).put("1", "0 - Negativo");
grid.getCombo(6).put("2", "1 - Positivo");
// Combo - Estado Positivo
grid.getCombo(7).put("1","Positivo Inconclusivo");
grid.getCombo(7).put("2", "Positivo Conclusivo");
// Combo - Motivo Rejeicao
grid.getCombo(8).put("1", "Sangue Insuficiente");
grid.getCombo(8).put("2", "Sangue Sobreposto");
When the grid is loaded, for example on column 6, if the value is “0 - Negativo”, I get 3 options:
0 - Negativo
1 - Positivo
0 - Negativo
It happens exactly the same on the other options. So then, when I go to the “select_filter” or “combo_filter” and select the option (it displays correctly the two options available) the value filtered is incorrect… For example, in this case, I filter for “0 - Negativo” and get the values for “1 - Positivo” or nothing at all.
If then I changed the value on the row, the filter works correctly till the grid is reloaded. When I save the record changed on the grid, it goes correctly to the database, but when I reenter the grid I get the same filter problem…
On column 8 it works a little bit better, some of the values (i have more options than the ones shown here) it works fine, even after reloading the grid…
Do you have any suggestions on how to fix this? Any suggestion will be appreciated! Thank you