EasyUI Forum
July 17, 2024, 02:28:59 AM *
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
1  General Category / EasyUI for jQuery / Re: GetRows specific column on: April 01, 2016, 12:14:20 AM
Thanks a lot devnull, Its work Smiley
2  General Category / EasyUI for jQuery / Re: GetRows specific column on: March 31, 2016, 11:14:39 PM
Still got an error, what is correct syntax using filter(row) ?
3  General Category / EasyUI for jQuery / [SOLVED] GetRows specific column on: March 31, 2016, 08:37:12 PM
Hi,
I still couldn't find the solution to get selected column like below :
var rows = $('#dgProformaInv').datagrid('getRows');
this rows return all datagrid content (all column of object as (id, name, address)
but I just want specified column (name,address)

Thanks any help.
4  General Category / General Discussion / Re: Drag drop different datagrid on: March 04, 2016, 08:38:07 PM
Thanks Stworthy I'll try it
5  General Category / General Discussion / Drag drop different datagrid on: March 03, 2016, 07:02:12 PM
Refer this topic http://www.jeasyui.com/forum/index.php?topic=625.0,
can be drag drop between two or more different datagrid ? if possible I wanna create KANBAN using datagrid
6  General Category / EasyUI for jQuery / Re: Change editor edatagrid on: February 26, 2016, 11:01:18 PM
Ahaa.. Its work!, solved, Thanks Jarry.
7  General Category / EasyUI for jQuery / Re: Change editor edatagrid on: February 26, 2016, 09:03:45 PM
Hi Jarry,

Thanks alot for your reply, maybe you misunderstood my point, I'm sorry about my question, I mean that
when I want to edit the current row by double-clicking the row, the editor will automatically change into checkbox if row.key_editor = 2, and if row.key_editor = 3 into the textbox and so on, I try using onBeginEdit event

Code:
var myTextEditor = {
       type:'textbox',
        options:{
            icons:[{
                iconCls: 'icon-new-win',
                handler:function(e){
                    var row = $('#dgKeyVal').datagrid('getSelected');
                    if(row.key_map=='LOGO'){
                        //alert('Attach logo !');
                        openDlgAttachFile();
                    }else{
                        valMore();
                    }
                }
            }],
        }
   };
   var myCheckEditor = {
       type:'checkbox',
       options: {on:1,off:0},
   };

// this is my column
{field: 'key_map', title: 'Key', width: 100, sortable: true},
{field: 'val_map', title: 'Value', editor: myTextEditor },  <<---- Change this editor
{field: 'key_editor', hidden: true},

onBeginEdit: function(index,row){
                if(row.key_editor==2){
                    //change val_map to checkbox editor
                    console.log('checkbox');
                    // this should be change to myCheckEditor
                }else{
                    console.log('textbox');
                    // this should be change to myTextEditor
                }
            },
8  General Category / EasyUI for jQuery / Change editor edatagrid [SOLVED] on: February 26, 2016, 04:18:14 AM
How change editor in edatagrid depent on other value
Code:
......
{field: 'val_map', title: 'Value', sortable: true, width: 150,
// if row.key_editor=1 then type editor textbox
// elseif row.key_editor=2 then editor type checkbox
// ....
editor:{
                    type:'textbox',
                    options:{
                        icons:[{
                            iconCls: 'icon-new-win',
                            handler:function(){
                                var row = $('#dgKeyVal').datagrid('getSelected');
                                if(row.key_map=='LOGO'){
                                    //alert('Attach logo !');
                                    openDlgAttachFile();
                                }else{
                                    valMore();
                                }
                            }
                        }],
                    }
                }},
......

how got other column value in editor as above logical ?

Any help I appreciate it, Thanks.
9  General Category / EasyUI for jQuery / Re: last update data in datagrid edit dialog box (NOT SOLVED) on: February 14, 2016, 11:14:22 PM
try this
http://www.jeasyui.com/forum/index.php?topic=491.0
10  General Category / EasyUI for jQuery / Re: Show many window after click different menu (NOT SOLVED) on: February 09, 2016, 09:58:38 PM
You just follow this to create a window
http://www.jeasyui.com/tutorial/win/win1.php

If you want to load ajax content in windows

Code:
<a href="javascript:void(0)" onclick="$('#w').window('open')">><?=$hasilresult['DisplayNamea'];?></a>

<div id="w" href="<?php echo base_url()?>index.php/<?=$hasilresult['linka'];?>?menunameid=<?=$hasilresult['MenuName_IDa'];?>"  class="easyui-window" title="Modal Window" data-options="modal:true,closed:true,iconCls:'icon-save'" style="width:500px;height:200px;padding:10px;">
        The window content.
    </div>
11  General Category / EasyUI for jQuery / Re: last update data in datagrid edit dialog box (NOT SOLVED) on: February 09, 2016, 09:40:59 PM
Hello agan idirwantono, i try to nimbrung

have you check after your submit your data has already changed in your database, if yes just call reload after save $('#yourDatagridId').datagrid('reload'); if no make sure your data save changed you can check on your firebug post header
12  General Category / EasyUI for jQuery / Refresh expanded sub datagrid on: January 14, 2016, 11:22:24 PM
How refresh expanded selected subdatagrid, I have been try like this :
Code:
_tblItemSelected = '#ddv-'+index; // I got the ID when parent datagrid clicked
$(_tblItemSelected).datagrid('reload');
Still not work, I have could find this forum, anyone know ?

Thanks in advance.
13  General Category / EasyUI for jQuery / Re: Panel Collapse on: June 30, 2015, 11:47:43 PM
How can I collapse layout panel onClick, I try like this
Code:
function hideEastPanel(){
$('body').layout('collapse', 'east');
}
found error :
var _346=$.data(_343,"layout").panels;

my layout panel inside IFRAME

Thanks in advance.
14  General Category / EasyUI for jQuery / Re: Icon in edatagrid editor on: May 19, 2015, 07:14:27 PM
Thanks a lot,

The problem is I use bootstrap theme not default theme, when I use default theme worked perfectly.
15  General Category / EasyUI for jQuery / Re: Icon in edatagrid editor on: May 19, 2015, 07:59:08 AM
Why it not work for me as below, the icon not show :
Code:
.......
 {field: 'val', title: 'Value(%)', sortable: true, width: 100, editor:{
                    type:'validatebox',
                    options:{
                        icons:[{
                            iconCls:'icon-add',
                            handler:function(){
                                alert('test');
                            }
                        }]
                    }
                }},
........
I use the latest edatagrid http://www.jeasyui.com/extension/edatagrid.php
Pages: [1] 2 3
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!