EasyUI Forum
November 03, 2025, 03:27:16 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: Combogrid and Edatagrid  (Read 8391 times)
binte.hava
Newbie
*
Posts: 5


View Profile
« on: March 05, 2014, 03:48:14 AM »

Hi!
I want to use combogrid in one cell of edatagrid and want to populate three fields of the edatagrid.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: March 05, 2014, 11:55:43 PM »

Please refer to this topic http://www.jeasyui.com/forum/index.php?topic=2996.0.
Logged
binte.hava
Newbie
*
Posts: 5


View Profile
« Reply #2 on: March 07, 2014, 08:42:24 AM »

I have seen this post and paste this code as it is. actualy i have to save value in another table and combogrid values will be comes from another table but right now the combogrid is empty Sad dont know what to do now.... Sad

<table id="dgsv_admin" title="WORKSHEET" style="width:950px; height:460px;"
         toolbar="#toolbar" pagination="false" idField="id"
         rownumbers="false" fitColumns="false" singleSelect="true">
   
      <thead>
         <tr>
            <th field="code" width="62" editor="{type:'combogrid',options:{required:true,url:'<?php echo base_url('index.php/adminworksheetscontroller/get_master_material')?>'}}">Code</th>
            <th field="type" width="64" editor="{type:'validatebox',options:{required:true}}">Type</th>
            <th field="room" width="61" editor="{type:'numberbox',options:{required:true}}">Room</th>
            <th field="length" width="61" editor="{type:'numberbox',options:{required:true}}">Length</th>
            <th field="type" width="61" editor="{type:'numberbox',options:{required:true}}">Depth</th>
         </tr>
           </thead>
</table>



<script type="text/javascript">
   $(function(){
      $('#dgsv_admin').edatagrid({
            url:'<?php echo base_url('index.php/adminworksheetscontroller/get_worksheet_stone_data')?>',
         });
   });
</script>

1-The Database table name is master_materials.There are six columns in that databse right now.
2-I want to add combogrid to the first cell of the Edatagrid.
4-The combogrid should only show one colum of the Database that is master_codes.
5-When the code is selected in combogrid I want to autopopulate the Length and Depth cells of the edatagrid from the Database other two columns(length and Depth) respective to that code.
6-Then I have to save the values in other table after the further calculation.
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!