Title: Enable/disable linkbutton in datagrid loaded by AJAX Post by: dnhoang 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({ 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? Title: Re: Enable/disable linkbutton in datagrid loaded by AJAX Post by: aswzen on June 09, 2015, 09:26:20 PM try this
Code: $('#btn-viewDeliverySchedule').linkbutton({disabled:true}); Title: Re: Enable/disable linkbutton in datagrid loaded by AJAX Post by: dnhoang 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}); Title: Re: Enable/disable linkbutton in datagrid loaded by AJAX Post by: iklotzko on September 07, 2016, 08:26:58 AM May I suggest you update your documentation to reflect this.
|