This is a migrated thread and some comments may be shown as answers.

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

1 Answer 309 Views
Window
This is a migrated thread and some comments may be shown as answers.
Alvin George
Top achievements
Rank 1
Alvin George asked on 05 Jul 2012, 06:46 PM
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.

1 Answer, 1 is accepted

Sort by
0
Tomaz
Top achievements
Rank 1
answered on 31 Aug 2012, 09:36 AM
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();
    }
Tags
Window
Asked by
Alvin George
Top achievements
Rank 1
Answers by
Tomaz
Top achievements
Rank 1
Share this question
or