Search
3647 results 331-340
Forum
- 14th Aug 2019Limit data() to changed cells only in preSubmit eventThank you, Allan. I managed to get the things configured to have the form return only the changed values in the postEdit. This is actually exactly what I was looking for. I was just going about it the wrong way. Thank you for recognizing that possibility and getting me back on track! Karl S
- 6th Aug 2019Edit data in inputs in cellsIt would be difficult to guess what the problem is without seeing it. Please post a link to your page or a test case replicating the issue so we can take a look. Kevin
- 7th Jun 2019Formatting cells based on another columnTo answer my own question, the following code highlights the 10th and 11th columns, based on the value in the 12th column: { targets: [10, 11], createdCell: function (td, cellData, rowData, row, col) { if ( rowData[12] == "T" ) { $(td).css('color', 'white') $(td).css('background-color', 'blue') } else if ( rowData[12] == "C" ){ $(td).css('color', 'white') $(td).css('background-color', 'red') } else { $(td).css('color', 'black') $(td).css('background-color', 'white') } } } ,
- 17th Apr 2019Line Breaks not happening in the cells when using Export to Excel Button in DatatablesI'm using this to force line break in excel : exportOptions: { format: { body: function ( data, row, column, node ) { return data.replace(/<br\s*\/?>/ig, "\r\n"); } } }
- 6th Feb 2019Is it possible to use the .disable() method on individual cells in .initComplete()?Hi @stevenAdvisicon , You can do something like this here - this doesn't allow bubble editing if the field contains the string "London". You could make it smarter by checking the correct column, or a range of values. Hope that gives you a direction, Cheers, Colin
- 23rd Jan 2019How to show partial content for long text cells? Whole content is displayed if the cell is clicked.Hi Colin: I appreciate your answer.
- 2nd Jan 2019Custom data in cells recieved as array from JSONSorry for the delay, it works, thank you !
- 20th Dec 2018How to format cells depending on conditionsok, I checked everything again and read your answers onesmore. And after changing createdRow to rowCallback everything works fine. Thanks for your patience. Thorsten
- 28th Nov 2018How to read through all cells in a column with a paging datatable?Hi @Keith_H , The data for that column could be read with column().data(), which you can then parse. The last example on filter()sounds like it may also do the trick for you. Cheers, Colin
- 3rd Oct 2018DT 1.10 Render cellsGreat Kevin, it works fine now :-) you take away a thorn from my feet ;-) Thanks again. Marc