Skip to main content

I have a model on which I am using updateRows() in a javascript. This model is displayed in a table on my skuid page. I want all rows in the model to be sorted based on a serial number. But updateRows () adds the new rows at the top of existing rows instead of the bottom. Could someone please suggest a way that could make the new row add at the bottom of existing rows?

Since Model.prototype.updateRows() does not create rows, I will assume that what you are referring to is actually Model.prototype.createRow().

As per the documentation for Model.prototype.createRow, found here: http://help.skuid.com/m/11720/l/205447-skuid-model-model, if you pass doAppend: true as a parameter when creating the row, it will be appended — that is, added to the end of the Model’s data — rather than prepended.


Thanks a ton Zach! You solved my problem! 🙂


Reply