separator

sets a delimiter for control values

string separator;

Example

{
    view:"multiselect",
    separator:"-",
    value:"1,2-1,3-1,4",
    options:[
        { id:"1,2", value:"Ch 1,2: Some time later" },
        { id:"1,3", value:"Ch 1,3: The terrific aftermath" },
        { id:"1,4", value:"Ch 1,4: How it all ended really" },
    ]
}


Default value:

","
Details

The delimiter is used in the setValue method and in the result of the getValue method.
By default options IDs in a Multiselect separated by the "," symbol (comma). In case this separator is inappropriate for you (for example, values of ID in your data contain commas), you can set any other symbol.

Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.