Show Posts
|
Pages: [1] 2 3
|
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.
|
|
|
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 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 ...... {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.
|
|
|
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 : _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 function hideEastPanel(){ $('body').layout('collapse', 'east'); } found error : var _346=$.data(_343,"layout").panels; my layout panel inside IFRAME Thanks in advance.
|
|
|
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 : ....... {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
|
|
|
|