data not getting passed to controller from refresh

2 posts, 0 answers
  1. Jeff
    Jeff avatar
    3 posts
    Member since:
    Nov 2014

    Posted 20 Mar 2015 Link to this post

    So for some reason with the following code my values are empty once they get to the controller. 

    Anyone have any ideas why? 

    Signature of controller.
    Public Function UserDetail(userString As String) _

    javascript code in view. 

            function openWindow() {
                var grid = $("#AjaxGrid").data("kendoGrid");
                var selectedData = grid.dataItem(;
                var stringData = JSON.stringify(selectedData);

                var window = $("#UserDetailDiv").data("kendoWindow");
                var PopUpTitle = "User Detail: ";
                    title: PopUpTitle,
                    content: "Loading....."

                    url: "/Inquiry/UserDetail",
                    data: { userString: stringData },

                    success: function (data) {
                    error: function (xhr, textStatus, exceptionThrown) {

  2. Alexander Popov
    Alexander Popov avatar
    1411 posts

    Posted 24 Mar 2015 Link to this post

    Hi Jeff,

    The refresh method cannot pass data to the server when iframe is used, so make sure that is not the case. The code looks correct, so if no iframe is used I would suggest examining the browser's console and network tab for any information that might give us a hint why the values are not passed to the server.

    Alexander Popov

    See What's Next in App Development. Register for TelerikNEXT.

  3. UI for ASP.NET AJAX banner
Back to Top