       if size + @mget('offset') > @mget('maxlength')
         size = @mget('maxlength') - @mget('offset')
       @model.save('length', size, {wait:true})
-
+      e.preventDefault()
   tablecontrolstate : () ->
     @mset('tablecontrolstate', @$('.tablecontrolstate').val())
 

      code = $(e.currentTarget).val()
      source = @model.get_obj('source')
      source.rpc('search', [code])

  column_del : (e) =>
    source = @model.get_obj('source')
    old = source.get('computed_columns')

      old = source.get('computed_columns')
      old.push(name : name, code : code)
      source.rpc('set_computed_columns', [old])
      e.preventDefault()
  clearselected : (e) =>
    @model.rpc('setselect', [[]])

