jQWidgets Forums

jQuery UI Widgets Forums Grid cellsformat Issue

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • cellsformat Issue #12287

    DavidSimmons
    Participant

    I am trying to get the cellsformat to work with no success. My number from the database might be something like this “11.01243”. Here is my code snippet… The grid displays the number in the orginial format even with the cellformat code. I am finding this with all the formatters and the $ or % sign does not display. Am I using this correctly? Do I have to format the sql results first? Please help me understand cellsformat.

    { text: ‘Cost’, dataField: ‘Cost’, width: 80, editable: false, filterable: false, cellsalign: ‘right’, cellsformat: ‘C2’ },

    cellsformat Issue #12289

    Peter Stoev
    Keymaster

    Hi David,

    ‘C2’ is not a valid format. It should be ‘c2’. In addition, if you missed to specify the “type” of your fields, they will be most probably considered as strings. Please, check the definition of your datafields array of the source object.

    Best Wishes,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    cellsformat Issue #12290

    DavidSimmons
    Participant

    Thanks…

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

You must be logged in to reply to this topic.