ajax json data value into render

ajax json data value into render

zenithjhonyzenithjhony Posts: 2Questions: 1Answers: 0
edited January 2020 in Free community support

I want to add per row delivery_id value in render .

Answers

  • kthorngrenkthorngren Posts: 21,167Questions: 26Answers: 4,921

    I want to add per row delivery_id value in render .

    I think what you are asking for is the data contained in the meta parameter of the columns.render function. Specifically meta.row. If this doesn't help then please provide more details of what you want.

    Kevin

  • rf1234rf1234 Posts: 2,944Questions: 87Answers: 416
    edited January 2020

    Somethiing like:

    columns: [  
        {data: 'delivery-id'},
    ...............
         {data: 'Actions', reponsivePriority: -1, 
            render: function (data, type, row) {
                ==> here you can use "row.delivery_id" in 
                    your code as is suitable for you
            },
            orderable: false
        },
    .....
    
  • zenithjhonyzenithjhony Posts: 2Questions: 1Answers: 0
    edited February 2020


    I am getting this undefined value

    @rf1234 @kthorngren

  • rf1234rf1234 Posts: 2,944Questions: 87Answers: 416

    If you follow my example it should work. Try not to use “meta“.

This discussion has been closed.