jQWidgets Forums

jQuery UI Widgets Forums DataTable singleRow doesn't work & parseDate error in jqxData.js

This topic contains 7 replies, has 2 voices, and was last updated by  roblajolla 9 years, 11 months ago.

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

  • roblajolla
    Participant

    Hi, I just upgraded to the latest jqwidgets (3.8.0) and am having difficulty getting the selectionMode : singleRow working. My data table always is able to select multiple rows.

    $(“#jqxDataTableModels”).jqxDataTable(
    {
    theme: globalTheme,
    width: ‘84%’,
    height: gridHeight,
    source: dataAdapterModelGrid,
    columnsResize: false,
    altRows: false,
    filterable: true,
    filterMode: ‘default’,
    sortable: false,
    columns: gridColumns,
    selectionMode: ‘singleRow’,
    });

    Also I am receiving an error in the jqxdata.js file indicating that the method .parseData is not available. I am using jquery 1.11.1

    Thanks in advance for your help.

    Rob


    ivailo
    Participant

    Hi Rob,

    We can not reproduce that type of error. Everything must work normaly.
    Look at this fiddle.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com


    roblajolla
    Participant

    Ivailo,

    Thank you. I have another DataTable in the same web application that works fine. I will continue to try to figure out what is wrong.

    Have you looked at the parseDate error in the jqxData.js? I had to modify the code in this routine to change 17 instances of parseDate to parsedate. This was the only way I could get the upgrade to work without throwing an error.

    Thoughts?

    Rob


    roblajolla
    Participant

    Ivailo,

    I believe I figured out why my DataTable ignores the “singleRow” setting of the “selectionMode”. I believe that when the “datafields” property “source” object that feeds the DataAdapter of the DataTable is null, the DataTable relies on the “columns” property of the DataTable to generate the data for the table. I believe in this instance, the “selectionMode” setting is ignored. When I set the “source.datafields” property to a valid list of data fields, the DataTable now honors the “singleRow” setting.

    Thank you for your quick response on this.

    Also, please look at my other issue in regards to the parseDate function in the jqxData.js.

    Thank you very much,

    Rob


    ivailo
    Participant

    Hi Rob,

    In your first post you are mentioned parseData thrown in the error. Then you mentioned parseDate.
    If the problem is with parseDate – the right syntax of the function is parsedate, also you are tried yourself and it works.
    So keep using parsedate.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com


    roblajolla
    Participant

    Ivailo,

    I apologize for the confusion. My earlier post was a typo. Let me try to explain the issue:

    I upgrade to the latest jqWidgets. When I run my application that uses a DataAdapter and DataTable, I receive an error internal to jqWidgets in the jqxData.js file. This error is NOT in my code. I receive the following web page error:

    Line: 7
    Error: Object doesn’t support property or method ‘parseDate’

    When I allow the web page debugger to launch, I see the following highlighted from your jqxdata.js code:

    var ab=ae.parseDate(N,”d”,aj)||ae.parseDate(N,”dd”,aj)||ae.parseDate(N,”ddd”,aj)||ae.parseDate(N,”dddd”,aj);

    with the error:

    Object doesn’t support property or method ‘parseDate’

    Please advise as I cannot run my application with this error.

    Thanks,

    Rob


    roblajolla
    Participant

    Has anyone else had this issue?

    Thanks a ton!

    Rob


    roblajolla
    Participant

    Update:

    I decided to re-download the 3.8.0 version and the problem is now resolved.

    Thank you for your continued support and please consider this issue closed.

    Rob

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

You must be logged in to reply to this topic.