EasyUI Forum
May 01, 2024, 01:07:40 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: in $(function(){} can't access the combobox item? but i need.no one answer me  (Read 2900 times)
cdtuql
Newbie
*
Posts: 26


View Profile Email
« on: June 02, 2017, 02:24:47 AM »

    $(function(){  
        $('#ICCardManagement_ListICCard_datagrid').datagrid({
        url:'${pageContext.request.contextPath}/iccard/getDataGrid',
        fit:false,
        fitColumns:false,
        rownumbers:true,
        sortName:'cardid',
        sortOrder:'asc',
        SelectOnCheck:true,
        CheckOnSelect:true,
        singleSelect:true,
        border:false,
        pagination:true,
        pageSize:10,
        pageList:[10,20,30,40,50],
        idField:'cardid',  
        queryParams:{"abc":"abc",
         "companyNo":$('#ICCardManagement_ListICCard_form_company').combobox("getValue")        
        
        },
        columns:[[  ]]

in the   queryParams:{"abc":"abc", }, it can work right.
but   queryParams:{"abc":"abc",
         "companyNo":$('#ICCardManagement_ListICCard_form_company').combobox("getValue")        
        
        },   the datagrid did not display?why not?


and it's work right in the function:
 function searchiccard(){
  var data={
          "companyNo":$('#ICCardManagement_ListICCard_form_company').combobox("getValue"),
          "depNum":$('#ICCardManagement_ListICCard_form_dep').combobox("getValue"),
          "cardtypeid":$('#ICCardManagement_ListICCard_form_cardtype').combobox("getValue")
      
  };
      
         $('#ICCardManagement_ListICCard_datagrid').datagrid('load',data);
  }





« Last Edit: June 04, 2017, 06:08:54 PM by cdtuql » 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!