     modelAt: (index) ->
         @pageForIndex(index).modelAt(index)
 
-
     saveModelChanges: (model) ->
         page = @pageForIndex
         @_calculateCache() unless @idCache

            attrs = {}
            for field, i in @result.query.fields.models
                attrs[field.id] = row[i]
            new @result.query.modelClass(attrs)
        )

    idForRow: (row) ->

        model

    addBlankRow: ->
        model = new @query.model
        row = []
        for field, i in @query.fields.models
            row[i] = model[field.id]
