jQuery UI Widgets Forums Grid send Grid selected row data to next page

This topic contains 3 replies, has 2 voices, and was last updated by  wpd 2 years, 6 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • send Grid selected row data to next page #98434

    wpd
    Participant

    In my first page i have grid when user selects a row in the grid and clicks next button it will redirect to next page. how to send selected row data to next page. i am doing trying in javascript but not able to get any clue

    send Grid selected row data to next page #98436

    wpd
    Participant

    i am using below code but page is not changing
    var rows = $(‘#jqxgrid’).jqxGrid(‘getrows’);
    var drtyRows = new Array();
    for (var i = 0; i < rows.length; i++) {

    if (rows[i].nar1 != 0)
    {
    drtyRows.push(rows[i]);
    }
    //console.log(rows[i].art_id + ” ” + rows[i].preporuka + ” ” + rows[i].vsklId1 + ” ” + rows[i].nar1);
    }
    var jsoo = JSON.stringify(drtyRows);
    $.ajax({
    type: “post”,
    dataType: “json”,
    url: “./extractData.jsp?tokenId=”+_tokId,
    contentType: “application/json; charset=utf-8”,
    data: jsoo
    });

    send Grid selected row data to next page #98442

    Stanislav
    Participant

    Hello wpd,

    What do you mean by sending the row to the next page?
    Do you mean that you want to select a row from the first page, and place it on the second page when you open it(which happens when you click on the button)?

    Maybe take a look at this example as well, it is not with paging, but the idea of drag and drop should work. Link

    Best Regards,
    Stanislav

    jQWidgets Team
    http://www.jqwidgets.com/

    send Grid selected row data to next page #98460

    wpd
    Participant

    i mean sending selected row data.
    I just need the data in json format to which i will use data for different porpose

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.