EasyUI Forum
April 19, 2024, 10:11:24 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: opts.view.render is undefined  (Read 9093 times)
jwilliquor
Newbie
*
Posts: 15


View Profile
« on: September 20, 2012, 03:45:24 AM »

I am trying to build an dynamic grid via javascript that uses virtual scrolling.  I can get the grid on screen with columns etc. but following the fetch of the rows for the grid i receive the error:

Error: TypeError: opts.view.render is undefined
Source File: http://test.schedulewerks.com/js/jquery.easyui.min.js
Line: 6881

Here's my setup code for the grid.

function Home_BuildGrid(tbl, cols){
   var w = $(document).width()-114;
   var h = $("#westButtons").height()+32;
   
   $('#main').append('<table id="gridMain"></table>');
   $('#gridMain').datagrid({
      view: 'scrollview',
      rownumbers: false,
      singleSelect: true,
      autoRowHeight: false,
      pageSize: 100,
      striped: true,
      loadMsg: true,
      columns: cols,
      width: w,
      height: h,
      url: '/admin/output/fetch?tbl='+tbl,
      onDblClickRow: function(rowIndex, rowData){
         Home_OpenInput(rowData);
      }
   });
}


Thanks
Justin
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: September 20, 2012, 07:06:27 AM »

The 'view' property is the view object not string.

$('#gridMain').datagrid({
view: scrollview
});
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!