Results 1 to 3 of 3

Thread: [Solved] record.get() for float value

  1. #1
    Sencha User
    Join Date
    Mar 2011
    Posts
    15

    Question [Solved] record.get() for float value

    Im using this code at select listener to change kretep value,
    but its value become int even if at table, that value is float.
    How do I can change it to float?
    Code:
            ,listeners: {
                select: function(combo, record) {
                    var kretep = Ext.getCmp('kretep3');
                    kretep.setValue(record.get('mr_kredit'));
                }
    Thanks for advice

  2. #2
    Sencha User fay's Avatar
    Join Date
    Apr 2007
    Location
    Ireland
    Posts
    1,750

    Default

    I assuming that you've defined mr_kredit as type float in the record's definition? Also, is kretep3 a NumberField? And you haven't accidentally specified allowDecimals as false?

  3. #3
    Sencha User
    Join Date
    Mar 2011
    Posts
    15

    Default

    Oh thanks.... I forgot to defined mr_kredit as type float in the record's definition

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •