EasyUI Forum
April 26, 2024, 04:51:44 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  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
You can call 'enableFilter' method to filter datagrid rows locally. Make sure to download the filtering extension from https://www.jeasyui.com/extension/datagrid_filter.php
Code:
$('#cc').combogrid('grid').datagrid('enableFilter')

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:
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},
    ]],
});
3  General Category / General Discussion / datagrid/datalist scroll problem in mobile device on: August 14, 2019, 06:55:53 AM
Datagrid/datalist scrolls smoothly in Androids browser, but it's not so smooth in an iOS/iPhone browser.
In an iPhones APP(safari), datagrid scrolls slowly and very hard.
Does anyone have same problem?
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.
5  General Category / EasyUI for jQuery / Re: show $.messager.alert problem in firefox on: January 09, 2018, 11:43:16 PM
It doesn't work. I copy your code to my new jsp page, it's still incorrect. please see the attached images.
6  General Category / EasyUI for jQuery / show $.messager.alert problem in firefox on: January 09, 2018, 02:26:57 AM
      $.messager.alert({
         border:'thin',
         title: 'mymsg',
         icon:'info',
         msg: 'msgtx......',
      });

show $.messager.alert in firefox is always out of the window, but in chrome,ie, it's normal...how to resolve this problem.thanks.

7  General Category / Bug Report / Re: set textbox disabled:true ,grey shadow did not full fill the box on: December 21, 2017, 12:48:32 AM
I have the same problem.
the default css like this:
.textbox .textbox-text {
  padding: 4px;
}
I revised padding: 4px to 0px, then the disabled textbox looks normal, but the text is very close to left side...I think padding: 4px looks better, but how to remove the white block right side.

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?
9  General Category / EasyUI for jQuery / Re: How to format the text of tree node?change font,resize lines space. on: December 01, 2017, 01:29:34 AM
thanks. I'll try to modify it.
10  General Category / EasyUI for jQuery / How to format the text of tree node?change font,resize lines space. on: November 29, 2017, 11:26:25 PM
How to format the text of tree node?
I want to change the node's font and size,and resize the space of nodes..how to do it?
I can't find the similar topic.
anybody can help?thanks a lot.
11  General Category / General Discussion / Re: How can I set the icon of linkbutton use my png file? on: November 05, 2017, 10:59:27 PM
very useful! thanks.
12  General Category / General Discussion / How can I set the icon of linkbutton use my png file? on: October 30, 2017, 06:40:14 PM
Hello,everyone,I'm new here..and I'm new for easyui.
I have two questions:
How can I set the icon use my png file?
And How can I get all of the internal icon name,like 'icon-edit','icon-ok',etc.
Can I get the name list? thanks!
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!