Telerik (not Kendo) window partial view, jquery refresh option not working

2 posts, 0 answers
  1. Jaesoon
    Jaesoon avatar
    60 posts
    Member since:
    Oct 2012

    Posted 06 Mar 2018 Link to this post

    Hi, i'm working with Telerik MVC controls (not Kendo controls) as this is an old application and it's been very difficult trying to get any documentation for it as everythings for Kendo now.

     

    I'm trying to get partial views working with this window and using the .refresh() accompanied with the .open() method but i can't get the correct behaviour for this to work.

    The URL has been set to one of the methods in the controller and it's not being hit at all and the window is just rendering blank with no items inside it.

     

    Initially this screen was made dynamically using jquery as an iframe - which is why i've updated it to use a static Telerik window (not iframe) and using the .refresh() method but to no avail.

     

    The window looks like the below:

     

    01.@(Html.Telerik().Window()
    02.    .Name("detailWindow")
    03.    .Title("Edit Window")
    04.    .Modal(true)
    05.    .Draggable(true)
    06.    .Width(200)
    07.    .Height(100)
    08.    .Visible(false)
    09.)

     

    And the jquery to perform the refresh looks as follows:

    01.    var abc= $("#detailWindow").data("tWindow");
    02.    abc.refresh({
    03.        url: url, ==> this is a valid URL but controller isn't being hit
    04.        title: "wat",
    05.        data: {
    06.            id: 1,
    07.            id2: 2
    08.        },
    09.    });
    10.     abc.center().open();

     

     

    Is there some file that i'm missing or an issue with the above code?

     

     

    Thanks

  2. Nencho
    Admin
    Nencho avatar
    1877 posts

    Posted 08 Mar 2018 Link to this post

    Hello Jaesoon,

    I am really sorry to inform you that the Telerik MVC controls are not longer supported. We could hardly advise you on any alternative approach as any other, unexpected, issues may arise as well. 

    My suggestion would be to try accessing the url in question directly in the browser (navigation bar) and see if the method would get hit. If not - probably a wrong path is provided as url. Also, make sure that there are not js errors in your browser console.

    Regards,
    Nencho
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top