Hi, I need to load a list of options into a ‘select’ control from an external data source (xml file or php program). I’ve tried using datatype:‘xml’, url:‘myurl.xml’, but it doesn’t work. An alternative would be to use a load method, but it seems there is not load() for the select control.
The popup of Richselect loads options in List component. By default, List displays “value” property. So, if you do not set options array manually and load items from an external datasource, you need to set item “id” as option key and item “value” as option label.
So, the second format of xml is correct:
Empresa 1
Empresa 2
Empresa 3
However, there was a bug in xml data processing. Please try to use the attached library to solve the issue. touch.zip (140 KB)