jQuery UI Widgets Forums DataTable Problem in case when the string begins with a number

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 9 years ago.

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

  • mkrupl
    Participant

    If the string begins with a number in the table only a number will be displayed.

    info = [
    	{key: "Storage", value: "2 GB" }
    ];
    var source = {localData: info, dataType: "array"};
    var dataAdapter = new $.jqx.dataAdapter(source);
    
    $("#infoTable").jqxDataTable({
    	theme: main.skinBasedJqxTheme,
    	width: "99%",
    	height: "90%",
    	source: dataAdapter,
    	pageable: false,
    	sortable: false,
    	editable: true,
    	columnsResize: true,
    	autoRowHeight: false,
    	altRows: true,
    	columns: [   /* Here are the definitions of createEditor, initEditor and getEditorValue functions*/  ]
    });

    In these case in the row of “Storage” displayed value will be 2.

    Thank you

    Maria


    Peter Stoev
    Keymaster

    Hi Maria,

    The dataFields array is undefined in your source object definition. It should be defined and also the “type” of each data field in the array should be set to “string”, “boolean”, “number” or “date”.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.