EasyUI Forum
May 01, 2024, 11:33:42 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: 1 2 [3] 4
31  General Category / EasyUI for jQuery / Re: Datagrid Buffer with nowrap problem on: December 11, 2013, 02:14:46 AM
Thanks...Great!!!
32  General Category / EasyUI for jQuery / Datagrid Buffer with nowrap problem on: December 06, 2013, 08:38:25 PM
Did anyone try to use datagrid bufferview with option nowrap:false ?
Here i got the problem with height of rownumber and data.
http://jsfiddle.net/sYznv/2/
33  General Category / EasyUI for jQuery / Re: Problem with checkbox field in datagrid-groupview on: October 13, 2013, 08:45:35 PM
I see, But could i count checked row base on productid?
http://jsfiddle.net/dGmSu/7/
34  General Category / EasyUI for jQuery / Re: Problem with checkbox field in datagrid-groupview on: October 11, 2013, 07:01:15 PM
I changed idField to productid, the problem occured. check here
Code:
http://jsfiddle.net/dGmSu/5/
Suppose I want to count checked row base on productid field, how?
35  General Category / EasyUI for jQuery / Re: Problem with checkbox field in datagrid-groupview on: October 11, 2013, 01:52:47 AM
I found the problem. If i set idField:'id' to datagrid, then the number of checked row was incorrect.
Could I count the number of checked row base on grouped row?
36  General Category / EasyUI for jQuery / Re: Expand all rows in datagrid-detailview on: October 10, 2013, 05:46:08 PM
Thanks!!!
37  General Category / EasyUI for jQuery / Re: Expand all rows in datagrid-detailview on: October 10, 2013, 01:48:40 AM
can you show the example code/event to expand all rows?
38  General Category / EasyUI for jQuery / Expand all rows in datagrid-detailview on: October 09, 2013, 09:16:12 PM
By using datagrid-detailview, user must click on + to expand each row.
Does it has anyway/trigger to expand all rows?
39  General Category / EasyUI for jQuery / Problem with checkbox field in datagrid-groupview on: October 09, 2013, 09:12:28 PM
When combining datagrid-groupview with checkbox field,
Code:
$(this).datagrid('getChecked').length
do not show the correct number of checked box.
Please help!
40  General Category / EasyUI for jQuery / Re: Group View Unload Data on: September 03, 2013, 07:53:02 AM
Did you mean data grid can't load data from your query? If so i guess you need to check this part "json_encode($result);"
41  General Category / EasyUI for jQuery / Re: Problem Filter Mode Remote on Combogrid on: August 17, 2013, 09:16:30 AM
Try the following:

index.php
Code:
<html>
<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/demo/demo.css">
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="http://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>
  
  <script>
  $(function(){
      $('#cg').combogrid({
         panelWidth:500,
         url:'get_data_tabel.php',
         idField:'id',
         textField:'uraian',
         mode:'remote',
         striped: true,
         editable:true,
         collapsible:false,
         rownumbers:true,
         fit:true,
         fitColumns:true,
         pagination:true,
         pageSize: 10,
         pageList: [10],
         columns:[[
            {field:'id',title:'Id',width:5,hidden:true},
            {field:'uraian',title:'Uraian',width:10},
            {field:'keterangan',title:'Keterangan',widht:60},
            {field:'active',title:'Status',width:10}
         ]]
   });
   });
</script>
<body>
      <h2> Filter in Combogrid </h1>
      <input id="cg" style="width:150px"></input>
</body>
</html>

get_data_tabel.php
Code:
<?php
   
include 'config.php';
   
$q = isset($_POST['q']) ? strval($_POST['q']) : '';
   
$page = isset($_POST['page']) ? intval($_POST['page']) : 1;
   
$rows = isset($_POST['rows']) ? intval($_POST['rows']) : 10;
   
$offset = ($page-1)*$rows;
   
$result = array();
      
   
//$where = "uraian like '%a%' or keterangan like '%a%'";
   //$rs = mysql_query("select count(*) from tb_referensi where ".$where);
   
$rs mysql_query("select count(*) from tb_referensi where uraian like '%$q%' or keterangan like '%$q%' ");
   
$row mysql_fetch_row($rs);
   
$result["total"] = $row[0];
   
$rs mysql_query("select * from tb_referensi where uraian like '%$q%' or keterangan like '%$q%' limit $offset,$rows ");
   
   
$items = array();
   while(
$row mysql_fetch_object($rs)){
      
array_push($items$row);
   }
   
$result["rows"] = $items;

   echo 
json_encode($result);
?>



config.php
Code:
<?php

$conn 
= @mysql_connect('127.0.0.1','root','');
if (!
$conn) {
   die(
'Could not connect: ' mysql_error());
}
mysql_select_db('mydb'$conn);

?>

42  General Category / EasyUI for jQuery / Re: Problem Filter Mode Remote on Combogrid on: August 17, 2013, 03:35:01 AM
What's the error ?
43  General Category / EasyUI for jQuery / Re: decode html entity in combobox on: August 16, 2013, 09:35:20 AM
Thanks!! It works..
44  General Category / EasyUI for jQuery / Re: Problem Filter Mode Remote on Combogrid on: August 16, 2013, 09:34:03 AM
Your code works fine as i tested it. I'm not sure if it was a problems from typo or somethings else.
Code:
3. File config.php
<?php

$conn 
= @mysql_connect('127.0.0.1','root','','9090'); <- 9090 should be named as "tb_referensi".
if (!
$conn) {
   die(
'Could not connect: ' mysql_error());
}
mysql_select_db('gammu'$conn);

?>


45  General Category / EasyUI for jQuery / Re: decode html entity in combobox on: August 03, 2013, 09:40:06 AM
<select class="easyui-combobox" name="state" style="width:200px;">
     <option value="AL">Alabam&a</option>
     <option value="AK">Alaska</option>
     <option value="AZ">Arizona</option>
</select>

When i choose "Alabam&a", i want it to show as "Alabam&a".
Pages: 1 2 [3] 4
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!