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 "//".
$('#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.
<a href="#" class="easyui-linkbutton" data-options="plain:true,disabled:true, iconCls:'icon-search'" id="btn-viewDeliverySchedule">Detail</a>
Can anyone help me?