keep large text field contained in normal size row
keep large text field contained in normal size row
I have a column from my SQL query that has a large volume of text that I would like to display just enough of to maintain the height of the row as a single normal row. I don't need to see the whole content of the text. Some way to trim to a single line?
thanks
thanks
This discussion has been closed.
Replies
[code]
$(document).ready(function() {
$('#notestable').dataTable( {
"sPaginationType": "bs_normal",
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "<?php echo base_url('administration/vendors/tableload_location_notes/'.$locationId)?>",
"sServerMethod": "POST",
"aoColumnDefs": { "bVisible": false, "aTargets": [0]},
} );
} );
Id
Added By
Date
Notes
Loading data from server
[/code]
Here is my controller:
[code]
public function tableload_location_notes()
{
$this->load->database();
$this->load->library('Datatables');
$this->datatables->select('
VENDORLOCATIONNOTES.ID,
VENDORLOCATIONNOTES.ADDEDBY,
VENDORLOCATIONNOTES.DATEADDED,
VENDORLOCATIONNOTES.NOTES
', FALSE);
$this->datatables->from('VENDORLOCATIONNOTES');
$this->datatables->where('VENDORLOCATIONNOTES.LOCATIONID', $this->uri->segment(4));
$this->datatables->add_column('edit', 'view', 'ID');
echo $this->datatables->generate();
}
[/code]
Allan