How to call make ajax request from javascript and pass extra parameters

2 posts, 0 answers
  1. Alvin George
    Alvin  George avatar
    3 posts
    Member since:
    Aug 2009

    Posted 05 Jul 2012 Link to this post

    Kendo ASP.NET MVC window only have method   .LoadContentFrom() . How can I make ajaxRequest through javacript where I can pass extra parameters
    I tried to access   ajaxRequest from window object but getting a java script error.
  2. Tomaz
    Tomaz avatar
    10 posts
    Member since:
    May 2012

    Posted 31 Aug 2012 Link to this post

    I do it like this on grid edit button click event:

    function OpenEditArticleDialog(IdArticle) {
     
            var windowElement = $('#windowEditArticle').data("kendoWindow");
     
            windowElement.refresh({
                url: "/News/ArticleEdit/",
                data: { id: IdArticle }
            });
     
            windowElement.center();
            windowElement.open();
        }
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top