Show Posts
|
Pages: 1 [2] 3 4
|
19
|
General Category / EasyUI for jQuery / Re: Getting error on message
|
on: November 08, 2019, 09:47:06 PM
|
$('#dg').datagrid('getSelected') returns the data in JSON format, you should spacyfiy the field name that you want to show in message. $.messager.confirm('Confirm','Are you sure you want to delete this certificate?' + row.yourfiedname ,function(r){
|
|
|
28
|
General Category / EasyUI for jQuery / Dynamically disable dates on datebox by setting year, month and fortnight values
|
on: June 02, 2019, 10:08:26 PM
|
I have solved this way. $('#dt').datebox({ onShowPanel: function () { var s_day, e_day; var year = parseInt($('#cbYear').combobox('getText')); var month = parseInt($('#cbMonth').combobox('getValue')) - 1; var fortnight = parseInt($('#cbForthnight').combobox('getValue'));
if (fortnight == 1) { s_day = 1; e_day = 15; } else { s_day = 16; e_day = new Date(year, month + 1, 0).getDate(); }
$(this).datebox('calendar').calendar('moveTo', new Date(year, month, 1)); $(this).datebox('calendar').calendar({ validator: function (date) { var d1 = new Date(year, month, s_day); var d2 = new Date(year, month, e_day); return date >= d1 && date <= d2; } }); } });
|
|
|
|