EasyUI Forum
April 29, 2024, 05:40:12 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / EasyUI for jQuery / Re: Enable/disable linkbutton in datagrid loaded by AJAX on: June 09, 2015, 10:21:57 PM
Thanks aswzen, it works.

The code below works too.

Code:
$('#btn-viewDeliverySchedule,#btn-viewDeliveryData').linkbutton({disabled:true});
2  General Category / EasyUI for jQuery / Enable/disable linkbutton in datagrid loaded by AJAX on: June 09, 2015, 09:08:58 PM
I have some datagrids inside tabs. I put some linkbuttons on toolbars of these datagrids.
I disable these buttons by onLoadSuccess of datagrid, and enable them by onSelect of rows.

It works fine until I rewrite to load datagrid by AJAX.

The code below will not work if I remove "//".
Code:
	$('#dg_general_01').edatagrid({
url: null,
                onLoadSuccess:function(){
                    $('#dg_general_01').datagrid("unselectAll");
                    //$('#btn-viewDeliverySchedule,#btn-viewDeliveryData').linkbutton("disable");
},
                onSelect: function(){
                    $('#btn-viewDeliverySchedule,#btn-viewDeliveryData').linkbutton("enable");
                }
    });

Although I can disble them when define.

Code:
<a href="#" class="easyui-linkbutton" data-options="plain:true,disabled:true, iconCls:'icon-search'" id="btn-viewDeliverySchedule">Detail</a>

Can anyone help me?
3  General Category / Bug Report / Re: Edatagrid with datagrid filter plugin could not reload on: July 23, 2014, 07:07:14 PM
Thanks jarry, it works like my hope.
But when I use (dg.datagrid({url:...})), grid will also load data.
What is the difference between above syntax and (dg.datagrid('options').url = ...Wink?
4  General Category / Bug Report / Re: Edatagrid with datagrid filter plugin could not reload on: July 22, 2014, 08:30:00 PM
Thanks Jarry! I have just updated file datagrid-filter.js and it works fine.
But there is still a small problem. After change data url, I have to call reload method to get new data. Could you make datagrid not to load data at the beginning? because data is too heavy, and I want to load grid first, then I will load my data by change url.
5  General Category / Bug Report / Re: Edatagrid with datagrid filter plugin could not reload on: July 15, 2014, 11:26:15 PM
Sorry Jarry! But it works well until I add pagination, and I could not reload. You can add pagination and reload, or add a button to reload it, you will see my status. Please note that with reload button, it seems working but it does not update new data, just like refreshing current data. I am trying to find some method.
6  General Category / Bug Report / Re: Edatagrid with datagrid filter plugin could not reload on: July 11, 2014, 12:39:46 AM
Dear Jarry!

I'm using the newest file, not only "datagrid-filter.js" but all js files of easyui.  it's OK if I remove edatagrid plugin. I'm trying many ways but it does not work.
7  General Category / Bug Report / Edatagrid with datagrid filter plugin could not reload on: July 08, 2014, 08:09:06 PM
Hello everyone!

I add a filter to my edatagrid by datagrid filter plugin and I could not reload it by pressing RELOAD button of pagination or even changing url of edatagrid. Can somebody help me?
8  General Category / EasyUI for jQuery / Re: id of edatagrid in formatter on: July 06, 2014, 08:32:45 PM
Thank you stworthy, it works as perfectly as my hope! You are hero  Grin!
9  General Category / EasyUI for jQuery / Re: id of edatagrid in formatter on: July 04, 2014, 01:01:32 AM
Thanks for your quick reply, stworthy!

But I don't want to to data of row. I want to make action formatter for general use, because I have many edatagrids in tabs, but I only want to have one formatter,  if I can get id of current table, I can call functions SAVE, CANCEL, EDIT.
For example, I have this formatter:
Code:
function actionformatter_qc01(value,row,index){
            var s = '<button onclick="save(this)">Save</button>';
            var c = '<button onclick="cancel(this)">Cancel</button>';
            var e = '<button onclick="edit(this)">Edit</button>';
if (row.editing){return s+c;} else {return e;}

function save(target){
            [b]$('#dg01')[/b].datagrid('endEdit', getRowIndex(target));
}

and I don't want to call $('#dg01') but for example $(this) or $(table_id), but it does not work.
Do you have any suggestion?
10  General Category / EasyUI for jQuery / id of edatagrid in formatter on: June 26, 2014, 11:06:34 PM
In edatagrid, how to get id of current table in function of formatters such as editrow, deleterow, saverow, cancelrow.
http://www.jeasyui.com/tutorial/datagrid/datagrid12.php
11  General Category / EasyUI for jQuery / Re: datagrid filter - how to reload on: June 23, 2014, 09:21:50 PM
I can reload datagrid by button on datagrid toolbar, but I still can not reload by reload button of pagination toolbar. Can you help me?
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!