jQWidgets Forums

jQuery UI Widgets Forums DataTable Disable word wrapping in cells

This topic contains 2 replies, has 2 voices, and was last updated by  dapu1975 9 years, 8 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Disable word wrapping in cells #76108

    dapu1975
    Participant

    Hi,

    I try to disable the word wrapping in cells, but I can’t solve the problem. Can anybody give me a hint?

    Here is my try…

    
    $("#dataTable").jqxDataTable(
    		{
    			pagerButtonsCount: 10,
    			pageSize: 10,
    			pageable: true,
    			source: dataAdapter,
    			autoRowHeight: true,
    			width: 1000,
    			height: 375,
    			columns: [
    				{ text: 'ID', dataField: 'REC_ID', autoCellHeight : false, hidden: true },
    				{ text: 'Artikelnummer', dataField: 'ARTNUM', autoCellHeight: false, width: 200 },
    				{ text: 'Barcode', dataField: 'BARCODE', autoCellHeight: false, width: 200 },
    				{ text: 'Kurzname', dataField: 'KURZNAME', autoCellHeight: false },
    				{ text: 'VK3', dataField: 'VK3', autoCellHeight: false, width: 110, cellsAlign: 'right' }
    			]
    		});
    

    Best regards
    Daniel

    Disable word wrapping in cells #76114

    Vladimir
    Participant

    Hello Daniel,

    Set the autoRowHeight: false to remove it.

    Best Regards,
    Vladimir

    jQWidgets Team
    http://www.jqwidgets.com

    Disable word wrapping in cells #76122

    dapu1975
    Participant

    Hello Vladimir,

    thanks for fast reply. In the meantime I found the cause of the Problem -> IE11 -> compatibility view.

    My functioning source Code (tested with EDGE, IE11 (without compatibility view)):

    $("#dataTable").jqxDataTable(
    {
    	pagerButtonsCount: 10,
    	pageSize: 10,
    	pageable: true,
    	source: dataAdapter,
    	autoRowHeight: false,
    	width: 1000,
    	height: 375,
    	columns: [
    		{ text: 'ID', dataField: 'REC_ID', hidden: true },
    		{ text: 'Artikelnummer', dataField: 'ARTNUM', width: 200 },
    		{ text: 'Barcode', dataField: 'BARCODE', width: 200 },
    		{ text: 'Kurzname', dataField: 'KURZNAME' },
    		{ text: 'VK3', dataField: 'VK3', width: 110, cellsAlign: 'right' }
    	]
    });

    Best Regards,
    Daniel

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.