EasyUI Forum
February 05, 2026, 05:20:07 PM *
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: Datagrid Hide Rows on: December 19, 2015, 10:28:35 PM
Thank you  Jarry for your answer.

The datagrid filter extension works very well, but due to there is no way to avoid to get a filter cell under every single column title, is not really functional.

The goal is to get a simple filter in a combobox, similar to the Demo example "DataGrid Complex Toolbar"  but instead to filter and display "equals", the filter should display "Not equal" , sort of inverted filter.

I have also try this suggested by stworthy, but it did't work. if there is a chance to see an example in http://jsfiddle.net would be great.

Code:
var cc = $('#cc');  // the combogrid object
var opts = cc.combogrid('options');
var values = cc.combogrid('getValues');
var rows = [];
$.map(cc.combogrid('grid').datagrid('getRows'), function(row){
if ($.inArray(row[opts.idField], values) == -1){
rows.push(row);
}
});
console.log(rows)


2  General Category / EasyUI for jQuery / Re: inverted filter on: December 17, 2015, 07:31:53 PM
Thank you for the answer, but it did't really work.

What I am trying to achieve is if you select for instance "Apples" in the filter, then you Datagrid display everything except the rows that contains the word "Apples"

Or In my real scenario , I need to hide rows that contains numbers between 0 and 999 in a certain column called "CODE"
Cheers!
3  General Category / EasyUI for jQuery / Datagrid Hide Rows on: December 17, 2015, 07:09:32 PM
I found really simple to hide Columns in Datagrid, but I can't find a way to hide specific Rows in datagrid based on certain conditions, such as Numbers, Colors, Titles, or whatever you lodge in the external MySQL table.

Example:
Any value in Row = "Apple" = Hide this Row.
Cheers!


4  General Category / EasyUI for jQuery / inverted filter on: October 22, 2015, 06:53:30 PM
Is it any possible way to get an inverted selection filter (everything but not the selection on combogrid)  to display result on datagrid ?
My apologies to ask something probably easy for experts, but after several hours, I've realized is not my case.

 
5  General Category / EasyUI for jQuery / multiple combogrid bug on: October 20, 2015, 01:41:18 PM
Hello,
Just following DEMO Multiple ComboGrid, however, even though it works as the example, any multiple value selected can't get stored in external MySQL table. it only store the latest selected value in DataGrid at time.
Thank you very much

 <div class="fitem">         
                <label>Assigned to:</label>
                <input name="assigned"  class="easyui-combogrid" style="width:250px" data-options="
                panelWidth: 250,
                multiple: true,
                url: 'http://www.example.com/users/get_users.php',
                idField:   'username',
                textField: 'username',
                mode:'remote',
                columns:[[ {field:'ck',checkbox:true},{field:'username',title:'Sort by name:',width:220}]]">
                </div>
6  General Category / EasyUI for jQuery / Re: multiple combogrid in different Tabs (refresh combogrid) on: September 14, 2015, 06:13:51 PM
you are awesome!
7  General Category / EasyUI for jQuery / Re: multiple combogrid in different Tabs (refresh combogrid) on: September 14, 2015, 11:30:29 AM
How do you create the dependent combogrid components? Please show some code snippets to describe your issue.

Thank you for your answer.
Actually I didn't do anything fancy:

1- First I have a few tabs like the demo:
class="easyui-tabs"

2- In each Tab, I have one Basic CRUD Application loading external JSON data like the demo:
class="easyui-datagrid"

3- In each Basic CRUD Application, I have filters with combogrids like the demo:
<span>By User:</span>
           <input id="users" class="easyui-combogrid"  style="width:120px" data-options="
            panelWidth: 250,
            url: 'http://www.URLEXAMPLE/get_users.php',
            idField: 'username',
            valueField: 'username',
            textField: 'username',
            mode:'remote',
            columns:[[
                      {field:'username',title:'Sort:',width:192,sortable:true}
                    ]]" >

The problem is, any update I do to any BASIC CRUD Application, will not update the filters combogrid in the other Tabs unless you 1- Refresh the entire webpage 2 - Sort by name if you make it sortable:true, 3 -drop down twice the dropdown combogrid.

I am looking for a way to update combogrid like this for datagrid: $('#EXAMPLE').edatagrid('reload');
8  General Category / EasyUI for jQuery / multiple combogrid in different Tabs (refresh combogrid) on: September 13, 2015, 08:34:47 PM
Hello, first time in this forum,
I've made a very nice easyUI application, however there is one very last thing I can't get accomplished.

I have dependent combogrids in different tabs. When the application launch, they load the external json tables and this is fine, but the problem is when there is a change in one table, the combogrids doesn't refresh properly in the other tabs.

How can I refresh the combogrids?
Thank you/
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!