TimePicker not restoring the ApplicationBar correctly

5 posts, 0 answers
  1. Shantimohan
    Shantimohan avatar
    42 posts
    Member since:
    Jul 2012

    Posted 12 Jul 2012 Link to this post

    I navigate to the TimePicker as follows:

    MainPage -> Page1 -> Popup1 -> TimePicker1

    In MainPage I have 4 buttons in ApplicationBar where as in Page1 I have 2 buttons.

    If I don't open the TimePicker1, then when I go back to MainPage, I get all main page icons. But if I open the TimePicker1, the Page1's ApplicationBar buttons are restored faithfully, but when I go back to MainPage the Page1's buttons are still shown. Then when I navigate in the MainPage (I have a Pivot control in the MainPage) I get an unknown error. Probably the correct ApplicationBar is not found.

    Also since you are using a popup for TimePicker and DatePicker, when I tap on TimePicker1, it doesn't apper over my Popup1. So effectively I don't see the digits / LongListSelectors. I see only the header at the top and the OK & Cancel icons at the bottom.

    So there are two issues here.
  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 13 Jul 2012 Link to this post

    Hello Shantimohan,

    Thanks for writing.
    Please download the latest internal build, it contains a fix for the app bar issue.
    Also can you please explain in more detail about the second issue. I could not understand what Popup1 is.
    I am looking forward to your reply.

    All the best,
    Victor
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. Shantimohan
    Shantimohan avatar
    42 posts
    Member since:
    Jul 2012

    Posted 13 Jul 2012 Link to this post

    Downloaded the hotfix 2012.2.0713 and the app bar issue is resolved. Hope this internal build has not introduced any new bugs in the controls that I am using.

    As per the 2nd issue about TimePicker over a Popup, see the screenshots attached herewith.
    1. First check the screenshot "Popup1 on Page1". I am using a popup that contains a DatePicker and a TimePicker.
    2. Then check the screenshot "TimePicker1 on Pipup1". This is what I get when tap on the TimePicker. You can only see the title "SELECT TIME" at the top and the two icons in the ApplicationBar at the bootom. But the time selector digits are not seen. They are obscured by my popup's display.

    So the TimePicker works fine if I use it directly on a Page. It doesn't work if I use it in a popup.

    ThanQ...

  5. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 16 Jul 2012 Link to this post

    Hello Shantimohan,

    Thank you for writing.
    I assume that you are using Microsoft's Popup class. When it is open, it creates a separate element tree that is parallel to the element tree of the page. RadWindow (used in the date/time pickers) inserts its content in the element tree of the page, it doesn't know about the popup, this is why the picker window is displayed behind the popup.

    Please consider revising the workflow of your application. A popup inside a popup is generally considered a bad use experience on the Windows Phone platform. You can achieve the same result with a separate page for the pickers which will avoid the popup in popup scenario.

    Thank you for understanding.

    Kind regards,
    Victor
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. Shantimohan
    Shantimohan avatar
    42 posts
    Member since:
    Jul 2012

    Posted 17 Jul 2012 Link to this post

    I wanted to use your TimePicker as the SL Toolkit's TimePicker opens a new page and invokes OnNavigatedTo on return. I find this return to OnNavigatedTo is not a complete one like that from a regular page. I had to manage it little bit to work. So I thought using RadTimePicker is simpler. But if I have to use it in a new page, then it will involve more coding to cater to tombstoning. I want to avoid calling a new page for using this.

    Hence I tried using the RadTimeSelector in another Popup which is opened on tapping a button in my original popup. This works fine and I will be using this.

    ThanQ...
Back to Top
DevCraft banner