[false; enhancement] JsonReader - results:null

January 7th, 2009 by jack
  • Scenario: You have an EditorGrid, you remove the last record of a store server-side (you don't remove the record from the client-side store) and then you reload the grid's data. The record still shows.

    Json response: {total:0, results:null}

    The reader has an exception when in readRecords when trying to do
    var root = this.getRoot(o), c = root.lengthroot is null, so it has no properties.
    But it throws and exception, which goes into a loadException event fired.

    Fix suggestion:
    var root = this.getRoot(o), c = root?root.length:0@jsakalos : I really do hope this is a bug :)


  • Hmmm. I see.
    Good to have in the forum though. Maybe others went into this as well.

    @changing this maybe to "enhancement"


  • By design, you have to return an empty array in that case.







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about [false; enhancement] JsonReader - results:null , Please add it free.

    Posted in ncgloryholes.com | edit

    Cycling Idol Faced With More Doping Allegations Los Angeles, Ca - Home and Garden