       )
 
     maxoffset = @mget('total_rows') - @mget('chunksize')
-    console.log('maxoffset='+maxoffset)
 
     if @mget('offset') < maxoffset
       node = $('<a class="btn" title="Next Page" href="#"><i class="icon-step-forward"></i></a>')

        @model.load(maxoffset)
        return false
      )
      table_hdr = $(table_hdr_template)
      table_hdr.append(btn_group)
      @$el.append(table_hdr)


class TableView extends ContinuumView

  className: 'div'

  render : () ->
    table_template = """
		<table class='table table-striped table-bordered table-condensed' id='tableid_na'></table>
    """
    header_template = """
      <thead id ='header_id_na'></thead>
    """
