EasyUI Forum
March 29, 2024, 07:14:49 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: tabs with datagrid bug in 1.3.1  (Read 15717 times)
poshere
Newbie
*
Posts: 6


View Profile Email
« on: January 10, 2013, 01:20:37 AM »

hi, when I dynamic generate datagrid in tabs, it will promp an error:
------------------------------------------------------------------
Uncaught TypeError: Cannot read property 'options' of undefined
$.fn.datagrid.methods.optionsjquery.easyui.min.js:7686
$.fn.datagridjquery.easyui.min.js:7553
$.fn.datagrid.defaults.$.extend.loaderjquery.easyui.min.js:8087
_53bjquery.easyui.min.js:7499
opts
------------------------------------------------------------------
the code is below:
------------------------------------------------------------------
<script type='text/javascript'>
$(document).ready(function(){
   var str = "<table class='easyui-datagrid' title='Basic DataGrid' style='width:700px;height:250px'></table>";
   $('#easytabs').tabs("add",{
      title: 'title',
      content: str
   });
});
</script>
<html>
<body>
<div id="easytabs" class="easyui-tabs" style="width:700px;height:250px">
</div>
------------------------------------------------------------------
in the version before 1.3.1 works well

hope to be fiexed

Logged
poshere
Newbie
*
Posts: 6


View Profile Email
« Reply #1 on: January 15, 2013, 02:47:02 AM »

hi, any info for this problem?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #2 on: January 15, 2013, 04:02:32 AM »

Please refer to this example http://jsfiddle.net/YaQyU/. It works fine, no errors found.
Logged
poshere
Newbie
*
Posts: 6


View Profile Email
« Reply #3 on: January 16, 2013, 01:52:46 AM »

thanks, that works in 1.3.2:)
Logged
kmfxq
Newbie
*
Posts: 1


View Profile Email
« Reply #4 on: July 29, 2017, 09:10:21 PM »

bugs same as 1.5.2
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!