Recent Forum Posts
From categories:
page 1123...next »

como eu carrego dados no treegrid sem usar script php. Na verdade eu gostaria de passar os dasdos estaticamente, em uma variável por exemplo em javascript. ou uma função retornando um objeto json. Como fazer isso :

Hi ,
How to show sum in datagrid crud application on footer row please provide source code and example

Show sum in footer row by sushant 123sushant 123, 29 Aug 2016 12:24

其实不写也是可以的,但是idField不能是checkbox那一列,我也纠结了一下午,坑爹

Hi,

For some reason the below code would not work in my jsp page ;

    var inputTag = $('<input/>',{
        id:'dateboxTest',
        type:'text'
    }) ;

    $('#dateboxDIV').append(inputTag) ;
    $('#dateboxTest').datebox({
        required:true,
    }).datebox('calendar').calendar({
        month:7,
    year:2020
    }) ;

I have also tried the following ;

    var inputTag = $('<input/>',{
        id:'dateboxTest',
        type:'text'
    }) ;

    $('#dateboxDIV').append(inputTag) ;
    $('#dateboxTest').datebox({
        required:true
    }) ;

    var c = $('#dateboxTest').datebox('calendar') ;
    c.calendar({
        month:7,
    year:2020
    });

I am using jQuery EasyUI 1.4.2.

It's driving me crazy…

index.html

<div id="mainwrap">
<div id="content">
<div id="main-layout" class="easyui-layout" style="height:500px">
<div id="supe" region="north" style="height:100px" href="panel_superior.php?menu=inv"></div>
<div region="west" title="Anuncios" split="true" style="width:300px" href="panel_izquierdo.html"></div>
<div id="demo" region="center" title="Productos" href="list_productos.php" style="padding:5px"></div>
<div region="east" title="Anuncios" split="true" style="width:300px" href="panel_izquierdo.html"></div>
</div>
 </div>
</div>

<script>
function abrir1(objeto,url,titulo){
$(objeto).panel({title:titulo});
$(opjeto).panel({href:url});
}
</script>

when I try this

<div data-options="iconCls:'icon-redo'" onclick="abrir1('#supe','panel_superior.php?menu=com','Compras')">Compras y Cuenta por Pagar</div>

It reload and still showing the previous information

what it is wrong

I have this in my datagrid jquery php, I fetch data from mysql database successfully.
however, I am using already formatted navigation menu style for all the page using php include () function. the navigation menu has interactive hide and open….

my problem is I want the datagrid position to be adjustable/fit to the page base on if my vertical nav menu open or hide.

I have tried to set the margin auto; div position: center; none works.

< div class = "easyui-layout" style = "width:600px;height:400
< div id= "mainContent" region= "center" >
< table id= "test" ></ table>
</ div>
</ div>

kindly help me. it important to my project.

Hi, i am trying to get roots when i click, but give an objet, only want to get the name to construct a root

example: /ProgramFiles/Eclipse/

treegrid, getRoots names by guillehamppguillehampp, 21 Aug 2015 13:52

i have download easyui v1.4.2 and im try thats sample combobox
directory : easyui\demo\combobox
browser : IE8 and Chrome 42.0.2311.90

when im try sample => "dynamicdata.html"
ie8 works fine
but chrome its doesn't work… what is wrong?

thx

how to use maxlength on combobox?

sample :
<input id="noBc" class="easyui-combobox" maxlength="6" >

it doesn't work :(

maxlength on combobox by Hendro PranataHendro Pranata, 07 Jun 2015 14:33

just try this:
var roots=$('#rptree').tree('getRoots');
while(roots.length){
$('#rptree').tree('remove',roots[0].target);
}
//redefine tree control
$('#rptree').tree({
url:'../server/rp_liststree.php',
queryParams:{catbm:$('#c2').combobox('getValue')}
});

I have used jquery-easyui-1.4.2 plugin and implemented combobox in my jsp page. It is working fine in Firefox but when i open the same page in chrome, dropdown is getting hidden and works fine when I refresh the page. I google it and saw the solution that we need to replace "load" function instead of "ready" function. But there is no jquery/javascript for jquery-easyui-1.4.2. I t has only plugin/library file. How can i solve this issue..

Thanks!!

Hi, I'm using the online editing grid and want to update data from a mysql database. Saving a new record works fine, but updating an existing record isn't working. I use one file to write te data to, see code below. What am I doing wrong?

The code for saving:

function saverow(target){
$('#tt').datagrid('endEdit', getRowIndex(target));
var row = $('#tt').datagrid('getSelected');
if (row){
var index = $('#tt').datagrid('getRowIndex',row);

$.post('save_cat.php',{id:row.id,cat_name:row.cat_name},function(){
$('#tt').datagrid('saveRow',index);
});

}
}

The save_cat.php file:

<?php

$id = intval($_REQUEST['id']);
$cat_name = htmlspecialchars($_REQUEST['cat_name']);

include 'conn.php';

if (empty($id)) {
$sql = "insert into categories(cat_name) values('$cat_name')";
}
else {
$sql = "update categories set cat_name='$cat_name' where id=$id";
}
$result = $conn->query($sql);
if ($result){
echo json_encode(array(
'id' => mysqli_insert_id($conn),
'cat_name' => $cat_name
));
} else {
echo json_encode(array('errorMsg'=>'Some errors occured.'));
}
?>

When I execute save_cat.php directly in a browser both a new record and updating a record works fine.
Hope someone can help, I've tried everything, but the problem remains.

Regards, René

在最新版本中依然存在这样的问题,就是自动加载不了日期数据,希望作者能更新一下这个问题。

Hello ,
In accordion i want to hide accordion panel and also show same panel with same title.

Actually, when i add combobox field in propertygrid, endEdit is fired when i click on other field, is-it possible to fire endEdit event when user click on item in combobox?
i tryed to add onSelect event in editor and to call propertygrid('endEdit', …) in event but that does not work.

我也遇到同样的问题。本地加载json文件异常。json文件路径绝对是正确的。

Hi,

I'm new to treegrid by easyui.
I have also used the extension "Drag and Drop Rows in TreeGrid"
I'm having an issue for my project. The extension works great, its just that i'm wondering is it possible for me to allow drag and drop only within its own level.

let me try to explain.
I only have tree levels

*A
*AA
*AAA
*AAB

*B
*BB
*BBB

What i need to do is
*A
*AA
*AAA
*BBB

*B
*BB
*AAB

Every level have a different content so i need to make sure the level stays but its DnD to any nodes as long as it maintains its level.

Appreciate is someone could advise/guide me on how to do this.
Thanks in advance!

I have a problem: my application use tabs, content in tab is iframe link to url, ex: link1.html. Inside link1.html use dialog. How to the dialog always in front of tabs? Help me. Thanks

Dialog and Tabs by KinhKanKinhKan, 07 Jun 2013 03:54

How can we set and show the empty row message as "No Records Found" in datagrid when there is no records in grid.

Thanks,

page 1123...next »
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License