Dealing with a predicament that is proving to be quite challenging. I have a kendo grid that is being populated with data from a JSON file.
The issue lies in the fact that the JSON file contains a field with varying types across different elements.
Allow me to illustrate this with an example:
"listaPreguntas": [
{
"idPregunta": 1126,
"idTipificacion": 1712,
"tipoPregunta": "E",
"pregunta": "¿DE QUE COLOR ES?",
"numeroOrden": 2,
"respuestasPosibles": [
{
"idRespuestaPosible": 1066,
"respuestaPosible": "HOSPITAL"
},
...
],
"idTipoEnumerado": 1
},
...
The JSON file contains three objects, each with a different type: "E" (enumerated values), "T" (text), and "F" (boolean).
My objective is to display a column in the grid whose type dynamically changes based on the type of data present in the JSON. This means having the ability to show text values, checkboxes, and dropdown boxes as needed.
I hope my explanation was clear.
Thank you for your assistance.