Show Posts
|
Pages: 1 ... 3 4 [5] 6 7 ... 239
|
61
|
General Category / General Discussion / Re: Sorting fire onLoadSuccess event
|
on: September 03, 2019, 12:36:00 AM
|
The sorting action will cause the sorted data to be loaded again. This will trigger the 'onLoadSuccess' event. If you want to identify the sorting action, add a flag before sorting and remote it after loading data. $('#dg').datagrid({ remoteSort: false, onBeforeSortColumn: function(){ var opts = $(this).datagrid('options'); opts.isSorting = true; }, onSortColumn: function(){ //... }, onLoadSuccess: function(data){ var opts = $(this).datagrid('options'); opts.isSorting = false; } })
|
|
|
63
|
General Category / EasyUI for jQuery / Re: easyui-panel lyout
|
on: August 22, 2019, 07:01:39 PM
|
1. Define a CSS class 'p-float'. <style type="text/css"> .p-float{ float: left; margin-right: 10px; } .p-float .panel-body{ display: flex; flex-direction:row; } </style>
2. Assign it to all your panel with 'cls' property set to 'p-float'. <div class="easyui-panel" id="divA" title="DivA" data-options="iconCls:'icon-ui-wrench' , fit:false,cls:'p-float' " > ... </div>
|
|
|
64
|
General Category / EasyUI for jQuery / Re: layout with fitted tabs
|
on: August 22, 2019, 06:51:41 PM
|
The 'fit:true' property will make the tabs full fill its parent container. Remove it and use this code instead. <div data-options="region:'south',title:'Detail',split:true, hideCollapsedContent:false" style="height:50%"> <div class="easyui-panel" style="padding:5px;height:50%"> <div class="btn-sep" id="menuA"> Menu:</div> <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ui-radio-on" plain="true" onclick="btnActivate()">activate</a> <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ui-radio-off" plain="true" onclick="btnDeactive()">deactivate</a> </div> <div id="tabsA" class="easyui-tabs" style="height:50%"> ... </div> </div>
|
|
|
65
|
General Category / EasyUI for React / Re: documentation inconsistencies
|
on: August 15, 2019, 12:42:19 AM
|
1. The LocaleBase has only one method that is only used internally. No other useful properties and methods.
2. The Messager does not extend from Dialog, but it wraps a MessagerDialog that extends from Dialog. This MessagerDialog receives the properties from Messager.
3. The MenuButton documentation has been updated.
|
|
|
67
|
General Category / EasyUI for jQuery / Re: Datagrid Checkbox by GroupView
|
on: August 09, 2019, 12:41:54 AM
|
First of all, append a checkbox element ahead of the group title. groupFormatter:function(value, rows){ var s = value + ' - ' + rows.length + ' Item(s)'; s = '<input type="checkbox" onclick="checkGroup(\''+value+'\',event)">'+s; return s; }
Define the 'checkGroup' function to check the group rows. function checkGroup(value,event){ value = $.trim(value); var dg = $('#dg'); var groups = dg.datagrid('groups'); var group = null; for(var i=0; i<groups.length; i++){ if (groups[i].value == value){ group = groups[i]; break; } } var checked = $(event.target).is(':checked'); for(var i=group.startIndex; i<group.startIndex+group.rows.length; i++){ dg.datagrid(checked?'checkRow':'uncheckRow',i) } }
|
|
|
70
|
General Category / EasyUI for jQuery / Re: DateBox inputmask and validation
|
on: July 28, 2019, 06:30:47 PM
|
Please try to override the 'inputEvents' events. (function($){ var keydownEventHandler = $.fn.maskedbox.defaults.inputEvents.keydown; $.extend($.fn.maskedbox.defaults.inputEvents, { keydown: function(e){}, keypress: function(e){ var tmp = $('<span></span>'); tmp.html(String.fromCharCode(e.which)); var c = tmp.text(); tmp.remove(); if ('0123456789'.indexOf(c) >= 0){ return true; } return keydownEventHandler(e) } }) })(jQuery);
|
|
|
|