Reload KendoUI after AJAX Request?

4 posts, 0 answers
  1. Matthew
    Matthew avatar
    1 posts
    Member since:
    Oct 2012

    Posted 04 Oct 2012 Link to this post

    We are using KendoUI to build some of our widgets, along with using ASP and Razor. We are getting some of these widgets delivered through a click, which fills in a div (using AJAX) with the appropriate HTML. The problem, is that the KendoUI is already loaded, and so the HTML delivered via AJAX is not styled, nor made into widgets from KendoUI. 

    Is there a way to "reload" the KenoUI JavaScript with each AJAX request?
  2. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 05 Oct 2012 Link to this post

    Would it be possible to instead of delivering html to use JSON and have kendo just render it out with templates?...it'd defiantly be faster
  3. Kendo UI is VS 2017 Ready
  4. Asif Hossain
    Asif Hossain avatar
    4 posts
    Member since:
    Nov 2012

    Posted 07 Jan 2013 Link to this post

    Hi Support Team,
    In kendo UI Grid, i have list of model object with paging enabled, when i perform an operation (e.g. Delete row 25 in page 5) via ajax json call, then i have removed one item from the model object and now in the view,  i want to see the 25th number row is removed and be in the same page 5 of the grid.
    What can be done after each successful Ajax call to the view ?
     $.ajax({
                url: "/Home/CloseMail/",
                data: {
                    emailID: mailID
                },
                cache: false,
                type: "POST",
                timeout: 10000,
                dataType: "json",
                success: function (result) {
                    if (result.Success) { 
                      /////////////// WHAT HERE ??????
                    } else {
                        alert("Operation Failed");
                    }
                }
            });


    Simply reload the page is not desired. Because in this case we will lost the page 5 in the Grid.

    Regards,
  5. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 07 Jan 2013 Link to this post

    Kind of depends on how it's setup...

    http://demos.kendoui.com/web/grid/editing-inline.html
Back to Top
Kendo UI is VS 2017 Ready