jQuery UI Widgets Forums DataTable Bug with %

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Bug with % Posts
  • Bug with % #59937

    antonomase
    Participant

    Hi,

    I have a bug when i want to display a text with a %.

    To simulate this bug,
    Go to http://jsfiddle.net/jqwidgets/vFHYr/
    Replace Ian in the first td by a text like I want to buy 30 of the coffee and run.
    I want to buy 30 of the coffee is displayed
    Type I want to buy 30% of the coffee
    Only 30 is displayed

    I also have this bug when displaying a JSON String with a %

    • This topic was modified 9 years ago by  antonomase.
    • This topic was modified 9 years ago by  antonomase.
    Bug with % #59940

    Peter Stoev
    Keymaster

    Hi antonomase,

    The solution for your case is quite simple – use dataAdapter as data source and set up its data fields and the “type” of each data field or use cellsRenderer for your columns.

    Best Regards,
    Peter Stoev

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

    Bug with % #59967

    antonomase
    Participant

    Hi Peter

    I use a dataAdapters and the source of the datatables are the dataAdapters. But I have about 350 dataTables and I have built tools to dynamically generate the syntax. I can’t have a generator for each set of data.

    I do not understand why a text field is not displayed as a text field because it contains a %. If it contains a € or a $, it isn’t converted into a number ?

    For the moment, my solution is into the PHP program which generate the datas and is to replace the char % by the chars °/o. But it is not very clean.

    Bug with % #59973

    Peter Stoev
    Keymaster

    Ok, antonomase. In case the widget is bound to dataAdapter and each datafield has the “type” set to “string”, “bool”, “date” or “number”, you will not experience any issues with type conversion. Your specific scenario will be investigated by our Team.

    Best Regards,
    Peter Stoev

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

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

You must be logged in to reply to this topic.