1. #1
    Ext JS Premium Member mother's Avatar
    Join Date
    May 2010
    Location
    Barcelona, Spain
    Posts
    11
    Vote Rating
    0
    mother is on a distinguished road

      0  

    Default RowEditor makes an empty column contain "" after editing another column

    RowEditor makes an empty column contain "" after editing another column


    Hi all,

    I have a grid where the last column contains no data, eg
    Code:
                data.push({
                    name: 'abcd',
                    address: 'efg',
                    email: 'a@b.com',
                    freetime: 0.5,
                    tags: ''
                });
    Once I edit a column using the RowEditor plugin, and for example, change name to 'defg', the name column field is marked 'dirty' as expected, but so is the tags field, where I made no changes. Dumping the content of the store before results in:

    Code:
    console.log(r.data['tags']);
    Code:
    (an empty string)
    and after the edit:

    Code:
    [""]
    It appears RowEditor modifies the field even if it's empty. Is there a way to fix this behavior?

    Update: investigating further, the strings when the store is created are zero-length, but after 'Update' is clicked on RowEditor, the length of the tags field is now one. I haven't been able to determine what this single character is, but I'm guessing \0.
    Cheers,

    Mike
    Last edited by mother; 13 Jun 2011 at 12:37 PM. Reason: Added some extra info.
    When the going gets tough, the tough get Chuck Norris.

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar