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

Cannot open popOver or modalView from Splitview

10 Answers 161 Views
SplitView
This is a migrated thread and some comments may be shown as answers.
Jack
Top achievements
Rank 2
Iron
Jack asked on 25 Jun 2012, 11:48 AM
To reproduce
Add splitview + headers + buttons in headers
connect buttons to popOver and splitView
they do not open.

10 Answers, 1 is accepted

Sort by
0
Jack
Top achievements
Rank 2
Iron
answered on 26 Jun 2012, 07:19 AM
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.
0
Kamen Bundev
Telerik team
answered on 28 Jun 2012, 09:07 AM
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!
0
Jack
Top achievements
Rank 2
Iron
answered on 28 Jun 2012, 10:47 AM
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
0
Kamen Bundev
Telerik team
answered on 28 Jun 2012, 01:19 PM
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!
0
Jack
Top achievements
Rank 2
Iron
answered on 28 Jun 2012, 01:53 PM
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
0
Kamen Bundev
Telerik team
answered on 03 Jul 2012, 11:52 AM
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!
0
Kamen Bundev
Telerik team
answered on 13 Jul 2012, 01:29 PM
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!
0
Kamen Bundev
Telerik team
answered on 15 Jul 2012, 06:11 AM
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!
0
Richard Pense
Top achievements
Rank 1
answered on 06 Aug 2013, 05:58 PM
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.
0
Richard Pense
Top achievements
Rank 1
answered on 06 Aug 2013, 09:10 PM
Never mind my last post.
I did get popOver to open from splitView. 
Tags
SplitView
Asked by
Jack
Top achievements
Rank 2
Iron
Answers by
Jack
Top achievements
Rank 2
Iron
Kamen Bundev
Telerik team
Richard Pense
Top achievements
Rank 1
Share this question
or