Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #109625
    Dark Beccio
    Participant

    HI,

    I ‘ve just updates my version from 14.2 to 17. I’ve noticed this behavior in the getCellValue() function:

    previously, when retrieving the value of a numeric column, I would actually get a number. Now, however, if I retrieve the value of a numeric column, I get a string instead.

    Is this an intended behavior or an error?

    TY

    #109629
    ivanpeevski
    Participant

    Hi Dark Beccio,

     

    Have you set the “number” type in the dataSource -> dataFields array?

    For example:

    
    
    dataSource: new Smart.DataAdapter(
    {
    dataSource: generateData(10000),
    dataFields:
    [
    'id: number',
    'firstName: string',
    'lastName: string',
    'productName: string',
    'quantity: number',
    'date: date',
    'price: number',
    'total: number'
    ]
    })
    

    <span class=”im”>Best Regards,
    Ivan Peevski
    Smart UI Team
    https://www.htmlelements.com/</span>

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.