I want to display the published status of items in the grid so I added a column for the published field using renderOptionSelector. I think I must have the renderoptions items set up wrong because, even though the form control is working properly in the edit window, in the grid it only ever shows a green checkmark. What’s the right way to set this up?
I’d also like to be able to toggle it by double-clicking in the grid but I haven’t been able to get that working either. Maybe the same problem?
Thanks!
{
"MIGX_id":8,
"header":"Enabled",
"dataIndex":"published",
"width":"",
"sortable":"false",
"show_in_grid":1,
"customrenderer":"",
"renderer":"this.renderOptionSelector",
"clickaction":"",
"selectorconfig":"",
"renderchunktpl":"",
"renderoptions":[
{
"MIGX_id":1,
"name":"alert_published",
"use_as_fallback":1,
"value":1,
"clickaction":"switchOption",
"handler":"",
"image":""
},
{
"MIGX_id":2,
"name":"alert_unpublished",
"use_as_fallback":"",
"value":0,
"clickaction":"switchOption",
"handler":"",
"image":""
}
],
"editor":""
}
}