jQWidgets Forums

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts

  • epkr
    Member

    Now i am working on geting rows which edited by the user and i will update them.

    i hope you understand what i wanna do on pure asp.net not MVC.
    is there any sample like this 🙂 before i run on it 🙂

    Thanks.


    epkr
    Member

    Thanks for reply.

    i got my solution in a different way because of i am not using MVC.

    i send my data to codebehind using Ajax POST

    code sample like this:

            function saveChanges(objList) 
    {
    var objList = new Array();
    var rows = $("#jqxgrid").jqxGrid('getrows');
    for(var i = 0; i < rows.length; i++)
    {
    objList.push(new Array(rows[i].ObjectID,rows[i].ParameterName,rows[i].ParameterValue,rows[i].isActive));
    }
    $.ajax({
    type: "POST",
    url: "XXXXX.aspx/SaveData",
    data: "{'data':'" + JSON.stringify(objList) + "'}",
    contentType: "application/json; charset=utf-8",
    dataType: "json",
    success: function (msg) {
    alert(msg.d);
    }
    });
    }
Viewing 2 posts - 1 through 2 (of 2 total)