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

Dropdown list items still displays after clicking Back button

4 Answers 73 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Vicky
Top achievements
Rank 1
Vicky asked on 12 Jan 2012, 04:46 PM
Hello,

When trying to click the Back button with the Dropdown list items opened, the list doesn't disappear after going back to previous page:
http://demos.kendoui.com/web/dropdownlist/index.html

Just wondering if anyone could shed some light on this.

Thanks a lot,
Vicky

4 Answers, 1 is accepted

Sort by
0
Max
Top achievements
Rank 1
answered on 28 Jan 2014, 03:30 AM
We have run into the same issue. Is there a solution or workaround for this?
0
Alexander Valchev
Telerik team
answered on 30 Jan 2014, 12:28 PM
Hello Max,

I tried to reproduce the behaviour on the demo page but to no avail. Could you please check the screencast and let me know what I am missing?
In addition which browser are you testing with?

Regards,
Alexander Valchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Max
Top achievements
Rank 1
answered on 31 Jan 2014, 03:31 PM
Hey Alex,

Thanks for the answer. I created a support ticket that has more info if you have access to that: 782035

From there: "You can see this behaviour in your own demos. Use an Android phone, go to the kendo ui mobile demo page (demos.telerik.com/kenndo-ui/mobile/m/index.html), switch to the Flat theme, go to forms -> overview -> dropdownlist, click on it, and then press the Android back button. You will see that the DropDownList stays on screen even though the view changes."

So it's Android-only (at least for me, I don't know about the OP), kendo-mobile only, and seemingly only on the Flat theme.
0
Alexander Valchev
Telerik team
answered on 05 Feb 2014, 01:05 PM
Hi Max,

My colleague Kiril already responded in the support ticket that you opened.
For your convenience I will paste the suggested workaround on the forum so the other users who are following this topic can read it:

In the mean time I would suggest you to use the backbutton event of the Cordova API, and close the dropdownlist manually using its close method. It should something like this:
document.addEventListener("backbutton", onBackKeyDown, false);
  
function onBackKeyDown() {
    $('#dropdownlistid').data('kendoDropDownList').close();
}


Regards,
Alexander Valchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
DropDownList
Asked by
Vicky
Top achievements
Rank 1
Answers by
Max
Top achievements
Rank 1
Alexander Valchev
Telerik team
Share this question
or