Hi, I just came into contact with Kendo UI. I think it is very powerful, especially the function of MVVM is very easy to use.
I have a question that I haven't understood. After setting the data of the datasource, you can operate on it, but the schema.model property can set the information of the data field. Is this unnecessary?
I never know the relationship between datasource and schema. Model. It seems that I don't set schema. Model and datasource works normally.
Can any engineer explain their specific links and functions? Thank you for your help.
Hello,
I have a Kendo UI Mobile ModalView that I use as a message dialog. It is rather simple (html code below),
and used to work fine by calling open and close methods and changing view data in between.
Now I have a situation where the modal view is already open and needs to be closed and
immediately reopened again with new data. It goes like this:
$("#modalview-alert").data("kendoMobileModalView").close();
changeSomeAlertData(); // update title and message text
$("#modalview-alert").data("kendoMobileModalView").open(); // opens view but immediately closes it
However the view doesn't reopen, apparently previous close method closes it too.
I tried to put a delay around close and I see that the view is reopened but immediately
closed after delay expires. Later on reopen works OK, this problem only happens if
open is done immediately after close. How can I close and immediately open the modal view again?
Thanks.
ps I use it on Android 7.0, Samsung Internet.
Regards,
Oleg
<div data-role="modalview" id="modalview-alert" data-close="onModalViewAlertClose"><!DOCTYPE html>
<
html
>
<
head
>
<
title
></
title
>
<
link
href
=
"http://cdn.kendostatic.com/2012.3.1114/styles/kendo.common.min.css"
rel
=
"stylesheet"
/>
<
link
href
=
"http://cdn.kendostatic.com/2012.3.1114/styles/kendo.default.min.css"
rel
=
"stylesheet"
/>
<
link
href
=
"http://cdn.kendostatic.com/2012.3.1114/styles/kendo.mobile.all.min.css"
rel
=
"stylesheet"
/>
<
script
src
=
"http://code.jquery.com/jquery-1.8.2.min.js"
type
=
"text/javascript"
></
script
>
<
script
src
=
"http://cdn.kendostatic.com/2012.3.1114/js/kendo.all.min.js"
type
=
"text/javascript"
></
script
>
</
head
>
<
body
>
<
div
data-role
=
"view"
>
<
a
data-role
=
"button"
href
=
"#foo"
data-rel
=
"modalview"
>This triggers logTarget</
a
>
<
a
data-role
=
"button"
data-click
=
"open"
>This does not trigger logTarget</
a
>
<
div
id
=
"console"
></
div
>
</
div
>
<
div
data-role
=
"modalview"
id
=
"foo"
data-open
=
"logTarget"
>
This is a simple modal view
</
div
>
<
script
>
$(function(){
new kendo.mobile.Application();
});
function open(e) {
var modalView = $('#foo').data('kendoMobileModalView');
modalView.open();
}
function logTarget(e) {
$('#console').append('logTarget Triggered');
}
</
script
>
</
body
>
</
html
>
Hi,
With reference to using component with dialog service (http://www.telerik.com/kendo-angular-ui/components/dialog/service/#toc-usage), I have a form inside the component and I would like to submit the form and close the modal using a button from inside the component rather than using the action buttons.
How should I go about achieving that?
Please refer to the following plunker:
http://plnkr.co/edit/Qq50UCo0jTaqUBYI4hq3?p=preview
Thanks.Hello,
i have a feature request for Kendo UI for Angular 2. It would be nice to have possibility to create dialogs without 'x' in the top right corner. For example if one wants to create a confirmation dialog hat only has 'yes'/no buttons that user has to choose from, without possibility to dismiss dialog with 'x'.
Hello,
starting from the example in this page http://www.telerik.com/kendo-angular-ui/components/dialog/service/#toc-specify-custom-actions ,
there is a way to assign a custom action for the [x] close button? I have to assign a guard before close dialog
Thank's
Hello!
I've just update dialog module to fix dialogservice issues, but now modals are not centered.
How can I fix?
Thank's!!
Hello,
As the title states, when you create a text input inside of a modal view, the background image is undefined. This does not cause any functional issues however it is annoying that requests are made for undefined on each load of the modal view. You can see the issue in your mobile modal demo at https://demos.telerik.com/kendo-ui/m/index#modalview/index. Open the modal view, inspect either of the text inputs and you will see the background-image points to an undefined url.
Thanks,
Matt