Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82388

Renderer question.

$
0
0

I have the following code that works great; however, it displays more records than I'd like (all records from the database table). I'd rather limit the returned data to columns equal to a specific value. Similar to a where clause (where x.id = "1"). Is this possible to accomplish with a renderer?

                        columnDefs: [
                            {
                                // The `data` parameter refers to the data for the cell (defined by the
                                // `data` option, which defaults to the column being worked with, in
                                // this case `data: 0`.
                                "render": function ( data, type, row ) {
                                    return ''+ row.users.full_name +'';
                                },
                                "targets": 14
                            },



Viewing all articles
Browse latest Browse all 82388

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>