This is a migrated thread and some comments may be shown as answers.

ComboBox doesn't show text on page back

4 Answers 59 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Boris
Top achievements
Rank 1
Boris asked on 07 Nov 2018, 03:08 PM

Hello everyone,

I stumbled upon some strange behaviour using a form containing kendoComboBoxes with the latest FireFox. If I return to the form after loading another page and pressing the browser's page back button, the text of the previously choosen options wont be displayed, just the placeholders. The combo boxes still hold their values because the clearButton shows on mouseOver and the data will be posted, it's just that the text is not being displayed. This problem does not occur with another browser such as Chrome or another widget such as kendoDropDownTree. Does anyone know if this is a known bug or has encountered this issue also?

Thanks in advance.

 

4 Answers, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 09 Nov 2018, 07:49 AM
Hi Boris,

I tried to reproduce the described behavior, but to no avail. The Firefox version I used is 63.0.1. 

It would be helpful if you can provide some setup that reproduces the issue on your end or provide a simple example that would enable me to replicate it on my end and investigate that further. 

If, however, Firefox is preserving the previously selected value in the input elements on back navigation, I am afraid, we cannot somehow control that behavior. 

Regards,
Ianko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Boris
Top achievements
Rank 1
answered on 19 Mar 2019, 11:59 AM

Hi Ianko,

it seems I'm not the only one:

https://stackoverflow.com/questions/14795143/kendo-ui-combobox-retains-value-but-not-text-on-return-to-page

The selected value ist marked correctly in the dropdown, but the text doesn't show in the box.

Thanks,

Boris

 

 

0
Accepted
Ianko
Telerik team
answered on 21 Mar 2019, 07:35 AM
Hello Boris,

This seams to be caused by Firefox. It has some sort of mechanism to save the app state which prevents the reinitialization of the widget when navigate back. Thus, the widget does no cycle through the code that inits the value of the input field.

That browser behavior is discussed here (https://stackoverflow.com/questions/2638292/after-travelling-back-in-firefox-history-javascript-wont-run) and the workaround suggested seems to helps with the case here as well: https://dojo.telerik.com/IXEMaRuW/3.

Regards,
Ianko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Boris
Top achievements
Rank 1
answered on 26 Mar 2019, 11:47 AM

Hi Ianko,

I just tried your solution and it seems to work well. This was not an easy find and there seem to have been quite some people who had that problem. So thank you very much again for posting a solution here.

Boris

Tags
ComboBox
Asked by
Boris
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Boris
Top achievements
Rank 1
Share this question
or