2 posts, 0 answers
  1. Saiphanish
    Saiphanish avatar
    1 posts
    Member since:
    Oct 2016

    Posted 14 Jan 2017 Link to this post


    I am opening an kendo window using the below jquery function.

    However I need to pass __RequestVerificationToken to the MVC Controller because I am having "ValidateAntiForgeryToken" Attribute.

    However, I am not able to pass it. Can you please suggest how to pass __RequestVerificationToken  while opening an kendoWindow

    function OpenTest() {           

    var url = '@Url.ActionWithArea("OpenTest", "Test", GlobalConst.AREA_EL_ElectiveEB)';

    url += "?test=" +$("#test").val() +
    "&test1=" +$("#test1").val();


        windowElement = $('<div id = "abc" />').kendoWindow({
        title: 'test',
        content: url,
        modal: true,
       resizable: false,
       draggable: false,
       width: 900,
       height: 400,
       close: function () { windowElement.destroy(); }

    return false;


  2. Boyan Dimitrov
    Boyan Dimitrov avatar
    2062 posts

    Posted 17 Jan 2017 Link to this post

    Hello Saiphanish,

    The content option of the Kendo UI Window makes a GET request to the server in order to get the content to be displayed. My suggestion is to add the verification token and its value as a query string to the url. 

    Boyan Dimitrov
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 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