Form -> ui.Select: How load data via URL?

I have a form, initialized via XML.

On the form I’m trying to place a Single-Select drop-down list box: http://webix.com/snippet/c0204232

I need to be able to load data by 2 different ways:

  1. Pre-load as an XML data (when the number of options is small)

  2. Provide a URL that returns data for ui.Select in XML format (when the number of options is large and I don’t want to hold Form load)

So far no problems with with #1, but I cannot figure out how to load data via URL.

Quesiton: does anybody know how to load data into Select in XML format via URL?

See screenshot below:

http://www.softcreator.com/WebIx/Issues/019_Form_Data_for_Select/019_Form_Data_for_Select.png

There is no way to have such kind of functionality for select ( except of separate ajax call )
For combo and richselect you can configure the suggestion popup
http://webix.com/snippet/89a299bd

Richselect is a good option, but I have 2 concerns:

  1. Fairly new kid on the block.

Has some unexpected behaviour, like when you click on the field, it opens a list-box, and overlap controls below.

When I click on Richselect field again, I expect it to collapse the list so that I can move to next item on the form. Instead it keeps the list open and does not give me access to other items.

There maybe more issues like this, I did not have time to test.

  1. Performance.

Is the any way to see how long does it take for Reachselect to load and open a list-box of 500 items?

RichSelect with 500 items
http://webix.com/snippet/1f9b27f5

Ability to load options from external resource can be added to the select view in some of next versions.

Thank you.
When do you expect a new release of Webix?

  • 1.5.1 - February 28
  • 1.6 - March 14

As for loading data in select - it will not be included in 1.6 for sure.

Thanks for info.
I’m a little confused with Select and Richselect - which one to select.
These 2 controls have similar functionality, Richselect exceeds.
What is the purpose to have both?

Select is a wrapper for native html select, it has all benefits ( html5 atrributes ) of html select but can show only plain text data ( no images, not styling ). On touch platform it will work better ( native touch UI for select controls )

Richselect is a custom component, it can render any html as value and in options list ( images, styling, etc. ). You can use all list API ( data loading, editing, selecting, saving, etc. )

By using example at http://webix.com/snippet/89a299bd I’m trying to load dropdown data via XML into a richselect: http://webix.com/snippet/82f3fe81

So far richselect does not show any options in dropdown.
Can you show an example of loading dropdown options via external XML file (url)?

Here is the reference to XML file:
http://www.softcreator.com/WebIx/Issues/DropdownOptions.xml

You need to use the same xml format as for any other data xml

http://webix.com/snippet/8a5cbe6e

Can the data for reachselect be loaded via URL?

Tried to load richselect options via URL and XML data formatted like in example above (data+item instead of options+option). Still no success: http://webix.com/snippet/c2840a3b

Will be fixed in 1.6 ( it works only for json in the current version )

Thanks