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

Problem after using scheduler after switching tabs

1 Answer 60 Views
ActionSheet
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 06 Jan 2014, 03:52 AM
Hi Fellas,
I am struggling with the Kendo UI scheduler. After I switch to the tab, I cannot normally go back without it changing the style
<div data-role="view" data-init="initScheduler" id="scheduler" data-title="Scheduler">
    <header data-role="header">
        <div data-role="navbar">
            <a data-role="button" href="#home" data-icon="back" data-align="left" ></a>
            <span data-role="view-title">iOS Platform</span>
            <a data-role="button" data-rel="drawer" href="#right-drawer" data-icon="share" data-align="right" ></a>
        </div>
    </header>
    <div id="scheduler"></div>
</div>
That's how I call the scheduler and the problem is demonstrated on this page http://chris1904.webege.com/ 
If you go to scheduler, you realize that if you go back the UI looks different. How can I prevent it from doing that?

Thanks for your help and this amazing framework,
Chris

Edit:
Sorry, I clearly posted this in the wrong section, but I cannot change it anymore. Please move it to the correct board

1 Answer, 1 is accepted

Sort by
0
Kamen Bundev
Telerik team
answered on 06 Jan 2014, 07:40 AM
Hello Chris,

You have duplicate IDs on your Scheduler and your View and since you init the scheduler on this ID and the View is first in the DOM - your scheduler gets initialized on it, causing this mess. If you change the ID of the View to something else, I guess your issue will be resolved.

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