Cannot open popOver or modalView from Splitview

11 posts, 0 answers
  1. Jack
    Jack avatar
    100 posts
    Member since:
    Jan 2007

    Posted 25 Jun 2012 Link to this post

    To reproduce
    Add splitview + headers + buttons in headers
    connect buttons to popOver and splitView
    they do not open.
  2. Jack
    Jack avatar
    100 posts
    Member since:
    Jan 2007

    Posted 26 Jun 2012 Link to this post

    My mistake: I did define my popover and modalview inside a splitview pane, at the level of views.
    The popover and modalview should be defined inside a view of a pane.
    This is a limitation in my opinion since you can only open it if the parent view is active.

    This raises another issue:
    - the popover opens on top of the splitview wheras the modalview opens inside the parent pane which is a limitation in termes of width.
  3. Kendo UI is VS 2017 Ready
  4. Kamen Bundev
    Admin
    Kamen Bundev avatar
    1532 posts

    Posted 28 Jun 2012 Link to this post

    Hello John,

    I already answered in your other thread, however I want to ask if I understood you correctly? You actually want to share a ModalView or a PopOver in the SplitView panes or in the entire mobile application?

    All the best,
    Kamen Bundev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  5. Jack
    Jack avatar
    100 posts
    Member since:
    Jan 2007

    Posted 28 Jun 2012 Link to this post

    Hello Kamen,

    I am currently exploring Kendo UI, nothing concrete at this stage. Alhtough very promising, Kendo UI is young and lacks key features for us to commit. Q2 fills many gaps but not yet at the level of our expectations. Q3 or Q4 might do the job. Kendo UI is on the right track anyway.

    As far as my explorations are concerned (a couple of prototypes to sell Kendo UI internally), I have found that you can only initialize a modalView within a view of a pane of a splitview and if this view is not active, there is no way to dislay the modalView. You have clearly answered this as a limitation of the beta in the other thread you are referring to.

    There is a side effect which is the modalView opens inside the parent view in a pane of a splitview, so it is opened and limited in size within that pane. I have found no way to open the modalview on top of the splitview, centered within the screen. I assume this is what you call the "entire mobile application".

    Regards,
    Jac
  6. Kamen Bundev
    Admin
    Kamen Bundev avatar
    1532 posts

    Posted 28 Jun 2012 Link to this post

    Hello John,

    Sorry, I guess I wasn't clear enough - with the fix when you specify the ModalView as a direct child of the SplitView, it will cover all the panes (and if you declare it inside a pane - it will cover the pane). In my question I meant if one would expect the ModalView to be shared between different Views and SplitViews, instead of being a child of them?

    Kind regards,
    Kamen Bundev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  7. Jack
    Jack avatar
    100 posts
    Member since:
    Jan 2007

    Posted 28 Jun 2012 Link to this post

    Kamen,

    I see your point and I am not sure the examples I have in mind are broad enough to properly answer. Maybe you should brainstorm with some peers to put a bit more thought into it.

    Let's say you list contacts in the right pane of a splitview and use a modalView to edit contact details. In this case, there is only one place to have the modalview and you can certainly have it inside the view.

    Let's say you want to edit application-wide settings like theme and language in a modalview, you might want this modalview to be available across your application. 

    IMHO having the modalView being a child of a view, a pane or a splitview is a limitation when you play with attributes like visibility but there are ways to share code including loading DIV programmaticaly, templates, frames, etc. to get around it if your design requires some trade-offs. Especially I do not know what you have in the pipeline and maybe using the modalview for the foundation of new controls like a messagebox might also have implications. 

    The best way I can answer your question is probably to tell you that when I first put my sample together, I did not expect to have to write the modalView as a child of a view and it did not work. I think one would expect the ModalView to be shared between different Views and SplitViews, instead of being a child of them.

    Have I answered?

    Best regards,
    Jac
  8. Kamen Bundev
    Admin
    Kamen Bundev avatar
    1532 posts

    Posted 03 Jul 2012 Link to this post

    Hi John,

    Yes, thank you for the explanation. You're right, in my opinion the ModalView should be a fully fledged View as well. I'll consult with my peers, but its too late this change to enter the Q2 release - for now the ModalView will remain a child of a View or the SplitView and we will think of a way to change it for the service pack.

    Regards,
    Kamen Bundev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  9. Kamen Bundev
    Admin
    Kamen Bundev avatar
    1532 posts

    Posted 13 Jul 2012 Link to this post

    Hello John,

    There is actually a way to share a ModalView between the different views - the problem is that the Application can't find it and initialize it, so if you initialize it yourself, it will work. Just place the ModalView in the views/layouts level and call kendo.mobile.init on it, like this:
    window.kendoMobileApplication = new kendo.mobile.Application(document.body);

    kendo.mobile.init(window.kendoMobileApplication.element.children(".km-modalview"));


    Then you can reference it from any view.


    All the best,
    Kamen Bundev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  10. Kamen Bundev
    Admin
    Kamen Bundev avatar
    1532 posts

    Posted 15 Jul 2012 Link to this post

    Hello,

    Spoke too soon, that won't work without patching the ModalView code. I'll do a workaround for the service pack.

    Kind regards,
    Kamen Bundev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  11. Richard Pense
    Richard Pense avatar
    12 posts
    Member since:
    Apr 2009

    Posted 06 Aug 2013 Link to this post

    Is this working now: to open a popOver from a splitView?
    I am trying to get this to work and not having any success yet.
  12. Richard Pense
    Richard Pense avatar
    12 posts
    Member since:
    Apr 2009

    Posted 06 Aug 2013 Link to this post

    Never mind my last post.
    I did get popOver to open from splitView. 
Back to Top
Kendo UI is VS 2017 Ready