I have tried the following code to open a window using javascript:
<div id="expwin" class="easyui-window">
   <table id="expdg"></table>
</div>
$('#expwin').window({'onOpen',
      		function(){
			     var t = $('#expdg').datagrid({
			      	url:'get_expiring.php',		     
			      	toolbar: '#exptoolbar',
			      	pagination:true,
			        columns:[[
			            {field:'drugname',title:'name',width:100},
			            {field:'batchno',title:'batch',width:100},
			            {field:'pack',title:'package',width:100},
			            {field:'qps',title:'qpur',width:100},
			            {field:'qs',title:'qsold',width:100},
			            {field:'qout',title:'qout',width:100},
			            {field:'entrydate',title:'endate',width:100},
			            {field:'mdate',title:'mdate',width:100},
			            {field:'expdate',title:'edate',width:100,align:'right'}
			        ]]
			    });
			      return t;
			}
		});To open the window:
<div class="t-list" onclick="$('#expwin').window('open')">test</div>The problem is that there is no error in the console, and this does not populate the datagrid table as well. I want to populate the datagrid with data from get_expiring.php when I click test. How can I achieve this?