This question is locked. New answers and comments are not allowed.
Hi, when I use a window component, with ajax,
The first time works very well, but when i use with other button and try to call the function ponerPantalla with other id Number the windows appar but nothing about the content only blank screen inside, do you know what is wrong?
Thks
function ponerPantalla(elId){
var direccion="edicion.php?id="+elId
var window = $("#window").kendoWindow({
title: "Centered Window",
contentUrl: direccion,
width: "400px",
height: "400px",
visible: false,
modal:true
}).data("kendoWindow");
window = $("#window").data("kendoWindow");
window.center();
window.refresh(direccion)
window.open();
}
The first time works very well, but when i use with other button and try to call the function ponerPantalla with other id Number the windows appar but nothing about the content only blank screen inside, do you know what is wrong?
Thks
function ponerPantalla(elId){
var direccion="edicion.php?id="+elId
var window = $("#window").kendoWindow({
title: "Centered Window",
contentUrl: direccion,
width: "400px",
height: "400px",
visible: false,
modal:true
}).data("kendoWindow");
window = $("#window").data("kendoWindow");
window.center();
window.refresh(direccion)
window.open();
}
9 Answers, 1 is accepted
0
Hello Ramon,
You shouldn't initialize the window several times. See this fiddle for a working approach.
All the best,
Alex Gyoshev
the Telerik team
You shouldn't initialize the window several times. See this fiddle for a working approach.
All the best,
Alex Gyoshev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
KC Islander
Top achievements
Rank 1
answered on 18 Jan 2012, 08:17 PM
This is still not working. I'm using the released version, and when I try to refresh the content, it keeps displaying the initial content, the refresh content does not seemt to do anything.
I'm using the code exactly as in that "fiddle", but it never refreshes the content. I tried several browsers (IE, Firefox, etc), refreshing everything, checking everything, and after several hours, I can't get it to work.
I'm using the code exactly as in that "fiddle", but it never refreshes the content. I tried several browsers (IE, Firefox, etc), refreshing everything, checking everything, and after several hours, I can't get it to work.
0
Dennis
Top achievements
Rank 1
answered on 15 Feb 2012, 09:26 PM
KC Islander, did you get it to work?
I tried a fiddle with hard links: http://jsfiddle.net/ZbEcd/33/ but indeed doesn't seem to work as expected.
Telerik team, any take on this?
Thanks.
I tried a fiddle with hard links: http://jsfiddle.net/ZbEcd/33/ but indeed doesn't seem to work as expected.
Telerik team, any take on this?
Thanks.
0
KC Islander
Top achievements
Rank 1
answered on 15 Feb 2012, 09:34 PM
No, it's still not working. I basically gave up on this, after a lot of trial and error. Telerik was not responding either, so I'm using another small javascript plug-in to open a window with ajax content from different domains.
I'd like to make it work and use it.....
I'd like to make it work and use it.....
0
Dennis
Top achievements
Rank 1
answered on 15 Feb 2012, 09:36 PM
I am used to good support from Telerik, I think this just slipped of the radar: Telerik support does the last fiddle I posted contain errors on our side (KC Islander, me).
Thanks!
- Dennis
Thanks!
- Dennis
0
Dennis
Top achievements
Rank 1
answered on 16 Feb 2012, 04:27 PM
Works with the latest version: http://cdn.kendostatic.com/2011.3.1407/js/kendo.all.min.js
Tested on jsfiddle: http://jsfiddle.net/eG2ZE/5/
Tested on jsfiddle: http://jsfiddle.net/eG2ZE/5/
0
Krishna
Top achievements
Rank 1
answered on 13 Dec 2015, 03:55 AM
Your example works if loading a different URL but of the initial load and the subsequent loads use the same URL then the content is not refreshed.
Any way to force this? I even tried to add a dummy URL parameter to the end of my URL to make it look different but kendoWindow.refresh does not reload the content.
Please advise...
0
chen
Top achievements
Rank 1
answered on 29 Feb 2016, 09:51 AM
no solution yet? how many year ago.
0
Hello chen,
This is a very old thread, and the described problem should not be happening in the latest version. If you still experience the problem, please open a new support thread, as this one is clearly outdated.
Regards,Alex Gyoshev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!