Hello
I have a form with input text and 2 jqxgrid.
When user wlick on submit button, i would like to export the text areas from the form but also all rows from both jqxgrid.
Below the mehtod i use to submit the form (i c atch the event with jquery) but currentely it exports only the text area.
What would be the best way to add the jqxgrid data to the data exported by ajax method?
Thank you
$(".closeDialog").live("click", function (e) { //prevent default action on the button click e.preventDefault(); $(this.form).validate(); if ($(this.form).valid()) { //Start ajax call $.ajax({ type: "POST", url: $(this.form).attr('action'), data: $(this.form).serialize(), success: function (data) { if (data.status == "success") { $(".dialogMGA").dialog("close"); } else //show error message $(".validation-summary-errors_MGA").html("<ul><li>" + data.Error + "</li></ul>"); }, error: function (data) { //If it happens alert user of the error $(".validation-summary-errors_MGA").html(data.responseText); //close the modal dialog $(this).closest(".dialogMGA").dialog("close"); } }); } });