this.data().DESIREDITEM .. what is the real value for DESIREDITEM .. here ?

this.data().DESIREDITEM .. what is the real value for DESIREDITEM .. here ?

Mr_PatelMr_Patel Posts: 8Questions: 2Answers: 0

table.rows().every (function (rowIdx, tableLoop, rowLoop) {
if (this.data().DESIREDITEM === DESIREDVALUE) {
this.select ();
}
});

I found above code in one of the datatable Q/A, can some one please let me know what should be the DESIREDITEM value. means what I need to write this.data().?? to access a column value .. ?

Answers

  • kthorngrenkthorngren Posts: 21,324Questions: 26Answers: 4,949

    The DESIREDITEM is a data property defined in that example. So you would replace it with the data property of interest in your table. Maybe you can post a link to the example you are referencing and give more details of what you are trying to do and your Datatables config.

    Kevin

Sign In or Register to comment.