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

SearchBuilder inside editor modal in an input field of type "datatable"

$
0
0

Hello everyone,

How can I search inside the datatable inside my modal (the input field with type datatable)?

    const editor = new DataTable.Editor({
        ajax: '/data-tables/stock-check',
        fields: [
            {
                label: 'Name:',
                name: 'stock_check_list.name'
            },
            {
                label: 'Items:',
                name: 'items_data[].ItemId',
                type: 'datatable',
                multiple: true,
                optionsPair: {
                    value: 'ItemId'
                },
                config: {
                    columns: [
                        {
                            title: 'ItemId',
                            data: 'ItemId'
                        },
                        {
                            title: 'Description',
                            data: 'Description'
                        },
                        {
                            title: 'InventoryLocation',
                            data: 'InventoryLocation'
                        },
                        {
                            title: 'InventoryBalance',
                            data: 'InventoryBalance'
                        },
                        {
                            title: 'LatestInventoryDate',
                            data: 'LatestInventoryDate'
                        },
                        {
                            title: 'TotalValue',
                            data: "null",
                            render: (data, type, row) => {
                                return row.InternalOrderPrice * row.InventoryBalance
                            }
                        },
                    ]
                }
            }
        ],
        table: tableElement
    });

Viewing all articles
Browse latest Browse all 82443

Trending Articles



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