Ajax Window not reload new content

Thread is closed for posting
10 posts, 0 answers
  1. Ramon
    Ramon avatar
    1 posts
    Member since:
    Sep 2011

    Posted 02 Oct 2011 Link to this post

    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();
    }
  2. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 05 Oct 2011 Link to this post

    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
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. KC Islander
    KC Islander avatar
    2 posts
    Member since:
    Mar 2010

    Posted 18 Jan 2012 Link to this post

    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.

  5. Dennis
    Dennis avatar
    19 posts
    Member since:
    Mar 2011

    Posted 15 Feb 2012 Link to this post

    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.
  6. KC Islander
    KC Islander avatar
    2 posts
    Member since:
    Mar 2010

    Posted 15 Feb 2012 Link to this post

    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.....
  7. Dennis
    Dennis avatar
    19 posts
    Member since:
    Mar 2011

    Posted 15 Feb 2012 Link to this post

    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
  8. Dennis
    Dennis avatar
    19 posts
    Member since:
    Mar 2011

    Posted 16 Feb 2012 Link to this post

    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/ 



  9. Krishna
    Krishna avatar
    1 posts
    Member since:
    Jul 2015

    Posted 12 Dec 2015 in reply to Dennis Link to this post

    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... 

     

  10. chen
    chen avatar
    3 posts
    Member since:
    Jul 2013

    Posted 29 Feb Link to this post

    no solution yet? how many year ago.
  11. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 03 Mar Link to this post

    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!
     
Back to Top
Kendo UI is VS 2017 Ready