jQuery UI Widgets Forums DataTable enableBrowserSelection on jqxDataTable is not working

This topic contains 4 replies, has 2 voices, and was last updated by  Peter Stoev 9 years, 11 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author

  • harunmahfud
    Participant

    I created jqxDataTable with enableBrowserSelection value is true, but I can not select text on row with Firefox and IE.
    This is my code

    $('#my-grid').jqxDataTable({
    	theme: 'office',
    	columnsResize: true,
    	selectionMode: 'singlerow',
    	pageable: true,
    	pageSize: 10,
    	pagerMode: 'advanced',
    	pageSizeOptions: [10, 20, 50],
    	filterable: true,
    	sortable: true,
    	altRows: true,
    	editable: false,
    	enableBrowserSelection: true,
    	width: '100%',
    	height: 430,
    	columns: [
    		{text: "Row 1", cellsRenderer: function(row){return (row+1);}, width: 40},
    		{text: "Row 2", dataField: "row2", width: 50},
    		{text: "Row 3", dataField: "row3", width: 120},
    		{text: "Row 4", dataField: "row4", columntype: 'datetimeinput', filtertype: 'date', width: 110, cellsformat: 'dd MMMM yyyy'},
    		{text: "Row 5", dataField: "row5", width: 110},
    		{text: "Row 6", dataField: "row6", width: 90},
    		{text: "Row 7", dataField: "row7", width: 100},
    		{text: "Row 8", dataField: "row8", width: 80},
    		{text: "Row 9", dataField: "row9", cellclassname: assetclass},
    		{text: "Row 10", dataField: "row10", width: 90},
    		{text: "Row 11", dataField: "row11", width: 70},
    		{text: "Row 12", dataField: "row12", width: 70,
    			cellsRenderer: function(row, column, value, rowdata) {
    				if (value.length > 0) {
    					return value;
    				} else {
    					return "<a href='http://localhost/myweb/submit?bl=" + rowdata.row2 + "' class='m-btn red mini'>SUBMIT</a>";
    				}
    			}
    		}
    	]
    });

    Peter Stoev
    Keymaster

    Hi harunmahfud,

    Just Tested our sample: http://jsfiddle.net/jqwidgets/wvFnC/ with this property turned on and it works fine with FF, IE and Chrome.
    We do not find a problem.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/


    harunmahfud
    Participant

    I found the problem in your fiddle when I set selectionMode: ‘singlerow’
    How can I enable singlerow selection and enableBrowserSelection together?


    harunmahfud
    Participant

    Hi Peter Stoev,

    This is my fiddle: https://jsfiddle.net/harunmahfud/16v2mpL2/


    Peter Stoev
    Keymaster

    Hi harunmahfud,

    I don’t see a problem with the Web Browser’s built-in selection. It’s enabled and it’s possible to select the text of the cells.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

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

You must be logged in to reply to this topic.