This question is locked. New answers and comments are not allowed.
Hi everyone,
I'm running into a problem which is driving me nuts...
I have a view where I have an "Edit Data" button. Clicking this button opens up a window with a grid inside it and I would like to be able to do in-line editing of this grid but it doesn't work. I probably have to better explain how I'm operating to clarify things...
The button mentioned responds to the click event (wired through jQuery). In the click even handler, I have an Ajax call to an Mvc partial view which contains everything that needs to be displayed in the popup window (grid included, of course).
This is the click handler:
It seems to work fine, and the window is opened with the grid correctly displayed, but every time I click a grid row "Edit" button, the whole page reloads and all I get is the partial view result in my browser...
Any clue as to what I might be doing wrong? Or, let me put it another way: is what I'm trying to do even possible?
Thanks,
Marco
I'm running into a problem which is driving me nuts...
I have a view where I have an "Edit Data" button. Clicking this button opens up a window with a grid inside it and I would like to be able to do in-line editing of this grid but it doesn't work. I probably have to better explain how I'm operating to clarify things...
The button mentioned responds to the click event (wired through jQuery). In the click even handler, I have an Ajax call to an Mvc partial view which contains everything that needs to be displayed in the popup window (grid included, of course).
This is the click handler:
function openAddRmaWindow(orderID) { var window = $("#winAddRma").data("tWindow"); $.ajax({ url: '/Order/AddRma/?orderId=' + orderID, type: "Get", data: "{}", cache: false, success: function (data) { if (data.Message == undefined) { window.content(data); window.center().open(); } else { alert(data.Message); } }, fail: function () { alert('Communication Error!'); } });}It seems to work fine, and the window is opened with the grid correctly displayed, but every time I click a grid row "Edit" button, the whole page reloads and all I get is the partial view result in my browser...
Any clue as to what I might be doing wrong? Or, let me put it another way: is what I'm trying to do even possible?
Thanks,
Marco