Hi Kendo support team,
I found a bug (or at least an undesired behavior) in the Kendo Multiselect widget.
After initialization the options in the existing select seem to be rebuilt receiving the content as value attribute if it did not exist before.
During this process potentially existing double spaces are replaced with single spaces (see attached image).
If the options of that select are replaced later, they will keep double spaces.
We use the selected values to receive content from the database, which in these cases is not possible anymore.
Since the content of the database is created by our client, we can't guarantee there might not be any double spaces.
In general I think that the content of the existing options should not be modified in any way.
Thanks,
Markus
See the following dojo to reproduce the behavior: https://dojo.telerik.com/oGEcaDoN
Hi Beto,
The observed is a result of the default behavior of HTML. Where there are multiple spaces inserted in the HTML, they will always be interpreted and displayed as a single space. For reference, you could review the following modified version of the Dojo sample. It also initializes a native <slect> element with <options>. You will notice that multiple spaces in those options will also be reduced to single.
If you need to visually keep the multi empty space in the HTML you will have to replace the blank space with the character for empty space ( ). Here you could find a Dojo implementing that suggestion.
I hope that the above explains the case. If you have any other questions, please do not hesitate to contact us.
Regards,
Veselin Tsvetanov
Progress Telerik