Delete row from data not just null it??

Delete row from data not just null it??

morteamortea Posts: 1Questions: 0Answers: 0
edited March 2010 in General
Is there a way to do that more kosher than either editing the aoData array directly or extracting all the data and then reloading with the offending row gone?

I guess people's server sides work differently, but I would have thought that would be the default, and the fancy undo or place holder nulls would be extras.. go fig.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    The reason that when you delete data the object is set to null is actually an optimisation. The aiDisplayMaster and aiDisplay arrays contain indexes to the aoData array. If there aoData array were to be modified, then we would need to completely regenerate the two display arrays...

    Having said that, it is an added complication that I'm questioning the value of, since questions such as your own do pop up now and then in a confused state about this interaction.

    I will look at how this might be best addressed, and see if there is a suitable alternative.

    Regards,
    Allan
This discussion has been closed.