Search
43745 results 6821-6830
Forum
- 17th Jan 2017Join table exampleI see that for the data, you discarded the values of data.options and data.files. Does that mean I can't use the data if I need to keep those values for Editor?
- 6th Jan 2017How to force a page refresh upon adding a new row to an Editor table?That works! Thanks Allan.
- 27th Dec 2016TD scroll not working on table with server side processing?Never mind I got this working by editing my modified version of the ssp.class.php file so that the data_output function now looks like this: static function data_output($columns,$data) { print_r($data); $DateFields = include 'DateFields.php'; $out = array(); for($i=0,$ien=count($data);$i<$ien;$i++) { $row = array(); for($j=0,$jen=count($columns);$j<$jen;$j++) { $column = $columns[$j]; if(isset($column['Formatter'])) { echo "Formatter<br>"; $row[$column['dt']] = $column['Formatter']($data[$i][$column['db']],$data[$i]); } else { //This is were I added the <div> around the values to allow the scrolling to work in all browsers. $row[$column['dt']] = "<div class='Scrollable'>" .$data[$i][$columns[$j]['db']]. "</div>"; if(in_array($column['db'],$DateFields,TRUE) && $row[$column['dt']] != '') { $row[$column['dt']] = substr($data[$i][$columns[$j]['db']],5,2) . "/" . substr($data[$i][$columns[$j]['db']],8,2) . "/" . substr($data[$i][$columns[$j]['db']],2,2); } } } $out[] = $row; } return $out; } I had to add a div inside the individual td so that the scroll would work.
- 16th Dec 2016Flex data table rows that are displayed based on window resolutionHi, Not based on screen resolution as such, but rather by browser window height, yes. I wrote a blog post a while ago introducing a plug-in that will do this with scrolling enabled. Since then I've also written one that will work with paging enabled but haven't written it up on the blog yet. There is an example in the repo showing how it works. Regards, Allan
- 25th Nov 2016Remove a row the table without asking the user for confirmationeditor.remove(table.row(i), false).submit(); Try using table.row(i).index(). In this example if I run: var rowIdx = $('#example').DataTable().row(':eq(0)').index(); editor.remove(rowIdx, false).submit(); It deletes the first row without confirmation. Allan
- 24th Nov 2016bootstrap select not running over table borderIt isn't currently possible in the forum to make your own questions as the answer (something I need to correct). I've done it for you. Allan
- 22nd Nov 2016Editor, insert value to field NOT included in the table sent to client.Aha, even better. Will try that. Thanks!
- 21st Nov 2016data-scrollY in DOM's table not working...It seems to work without that for me: http://live.datatables.net/bavafimu/1/edit . It shouldn't really need the square brackets, which would suggest an array. Allan
- 10th Nov 2016Bind Datatables to @grid.GetHtml tablegrid.GetHtml( htmlAttributes: new { id = "table-id" }, fillEmptyRows: false, The thing
- 8th Nov 2016Reg: Table Search using Boolean operatorsHammm.. May be searching for multiple keywords... Thanks for the link, will look into it if matches my requirement. Thanks Allan,