Show Posts
|
Pages: [1]
|
1
|
General Category / EasyUI for jQuery / Re: combogrid remote url is located to a local function or method, is it possible?
|
on: February 26, 2021, 07:13:50 PM
|
It works!!!! thank you jarry...i revised the code: $("#wldw").combogrid({ panelWidth: 500, width: 220, height: 30, fitColumns: false, onValidate:function(f){ let fv = $(this).combogrid('getText'); let fvlen = fv.length; if(fv.trim()!=''&&fv.substring((fvlen-1))==' '){ $(this).combogrid('grid').datagrid('addFilterRule', { field: 'fullname', op: 'contains', value: fv.trim(), }); $(this).combogrid('grid').datagrid('addFilterRule', { field: 'sword', op: 'contains', value: fv.trim(), }); $(this).combogrid('grid').datagrid('doFilter'); } if(fv.trim()==''){ $(this).combogrid('grid').datagrid('addFilterRule', { field: 'fullname', op: 'contains', value: fv.trim(), }); $(this).combogrid('grid').datagrid('addFilterRule', { field: 'sword', op: 'contains', value: fv.trim(), }); $(this).combogrid('grid').datagrid('doFilter'); } }, });
|
|
|
2
|
General Category / EasyUI for jQuery / combogrid remote url is located to a local function or method, is it possible?
|
on: February 26, 2021, 12:19:21 AM
|
If combogrid remoteurl could be located to a local function or method, is it possible? I want local filter in combogrid like remote url filter,but I don't want to visit the server url frequently, local filter just locate the searchword in the full datagrid list,I want only show the filtered results in the panel by local filter model, if remote url could be located to a local function or method, it will be solved. Or anybody can provide another solution? I tried another solution,that is put a onValidate event to combogrid and when i type something to query,i can get a new filtered results but how can i reload the combogrid data list? i need to change the datalist dynamiclly, is it possible? this is the code: $("#wldw").combogrid({ panelWidth: 500, idField:'id', textField:'fullname', mode:'local', data:fcombodata, onValidate:function(f){ let fv = $("#wldw").combogrid('getText').trim(); fcombodata = []; for(let i=0;i<combodata_cust.length;i++){ if(combodata_cust[i]['id'].indexOf(fv)>=0||combodata_cust[i]['fullname'].indexOf(fv)>=0){ fcombodata.push(combodata_cust[i]); } } //$("#wldw").combogrid('loadData',fcombodata); }, columns:[[ {field:'id',title:'ID',align:'center',width:80}, {field:'fullname',title:'Name',align:'center',width:240}, {field:'sword',title:'SearchWord',align:'center',width:80}, ]], });
|
|
|
4
|
General Category / EasyUI for jQuery / Problems with <!DOCTYPE HTML>, It's weird!!
|
on: May 13, 2018, 07:40:22 AM
|
I'm building a jsp page with default jsp template of MyEclipse2014. In this jsp page, the <!DOCTYPE by the default template looks like <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">. And then I finished a jsp with Easyui tabs and tested the jsp page by chrome, It's correct, see the picture 1. But when I tested by firefox, it looks incorrect, tabs out of the browser. I've ever asked this question, and got the answer. I revised <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> to <!DOCTYPE HTML>, the problem of out of browser resolved, but I got new problem,I can't close the every tab. I can't point the close icon.see the picture 2. How can I correct the problem? In pic 2, It was very hard to move and click the area which the close icon is in.
|
|
|
8
|
General Category / EasyUI for jQuery / How to unselect all nodes?
|
on: December 06, 2017, 08:12:40 PM
|
How to unselect all nodes in a tree?I can't find a proper method to do it. I built a contextMenu in a tree, every node was selected when I run contextmenu on right click the every node. How can I unselect the others when I right click one node?
|
|
|
|