EasyUI Forum
May 05, 2024, 07:08:21 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 / Filter only shows parent nodes not the child nodes on: July 13, 2017, 12:45:45 AM
I have added search to TreeGrid using enable filter.
But on searching for the parent node, it doesn't display the child nodes.
How can I fix this?
2  General Category / EasyUI for jQuery / Re: Treegrid with filter on: July 12, 2017, 02:03:36 AM
Did you find a solution to this?
3  General Category / EasyUI for jQuery / Tooltip in DataGrid disappears on sorting on: July 08, 2017, 07:48:39 AM
Hi,

I have a TreeGrid.
I have used tooltip for every cell which shows the cell text.
But once I sort the field, tooltip does not appear.
How to fix this?

Code:
$('td span.tree-title').tooltip({
            position: 'right',
            trackMouse: true,
            content:function(){
            var cont = $(this).text();
            return '<span style="color:#fff">' + cont + '</span>';
            } ,
            onShow: function(){
                $(this).tooltip('tip').css({
                    backgroundColor: '#666',
                    borderColor: '#666'
                });
            },
        });
4  General Category / EasyUI for jQuery / Create text file on local machine after getting data from TreeGrid on: July 02, 2017, 02:17:27 AM
Hi,

I have created a TreeGrid.
I have the data from checked nodes.
I want to write this data in a text file and save it on my local machine.
Is it possible?
5  General Category / EasyUI for jQuery / TreeGrid Get Node on: July 01, 2017, 03:27:49 AM
I am using a treegrid.
There is a method to get checked nodes and selected nodes.
I want to get the nodes, where only some children are selected.
It is not a checked node nor is it selected.
So how do get these nodes?
Please see the attached picture to understand which nodes I'm talking about.

Edit:

I want to get indeterminate as well as checked nodes in one array
I have tried-
Code:
var bb = $("#test").treegrid('getCheckedNodes',['checked','indeterminate']);
This does not work
6  General Category / EasyUI for jQuery / Re: Editing a cell onClick TreeGrid on: June 29, 2017, 02:38:36 AM
Worked!!
Thanks Smiley
7  General Category / EasyUI for jQuery / Re: Combo Box inside TreeGrid on: June 29, 2017, 02:38:06 AM
It worked.
Thank you  Grin
8  General Category / EasyUI for jQuery / [SOLVED] Editing a cell onClick TreeGrid on: June 25, 2017, 04:22:30 PM
I am trying to get a cell edited on being clicked.
I have tried-

 $('#test').treegrid({
            data : testsuiteArray,
            idField : "id",
            treeField : "tsName",
            fitColumns : true,
            resizeHandle : "right",
            checkbox: "true",
            loadMsg : "Processing, please wait …",
          //  multiSort: "true",
            order: "asc",
         //   sortName: "tsName",
            // remoteSort: true,
            columns:[[
                {field:'tsName',title : 'Testsuites',width:"20%",sortable:true},
                {field:'exeplatform',title : 'Exec PlatForm',width:"30%",sortable:true,
                    formatter: function(){
                        return '<select id="cc" class="easyui-combobox" name="dept" style="width:200px" multiple=true;>' +
                                    '<option value="aa">aitem1</option>' +
                                    '<option>bitem2</option>' +
                                    '<option>bitem3</option>' +
                                    '<option>ditem4</option>' +
                                    '<option>eitem5</option>' +
                                '</select>';
                    }
                },
                {field:'exetype',title : 'Exe Type',width:"20%",sortable:true},
                {field:'runon',title : 'Runon',width:"20%",sortable:true,editor:'text'},
                {field:'thread',title : 'Thread',width:"10%",editor:{type:'numberbox'},sortable:true}
            ]],
        });

AND THIS


onClickCell:function(field,row){
                console.clear();
                console.log("in");
                if (field === 'thread'){

                    console.log("if");                // in and if get printed on the console
                    field.editor = 'numberbox';
                }
                else{
                    console.log("null");
                    field.editor = null;
                }


            }


Both aren't working. Embarrassed

 
9  General Category / EasyUI for jQuery / [SOLVED]Combo Box inside TreeGrid on: June 25, 2017, 09:13:10 AM
My data is being fetched from a JSON and being put in a TreeGrid.
I am trying to make one of the columns as a combox but only the first row gets converted.
I am using the coloumn formatter but clearly I am doing something wrong.
Attaching a screenshot as well.
Following is the code where I use the formatter:

function initializeTree(testsuiteArray){
        $('#test').treegrid({
            data : testsuiteArray,
            idField : "id",
            treeField : "tsName",
            fitColumns : true,
            resizeHandle : "right",
            checkbox: "true",
            loadMsg : "Processing, please wait …",
          //  multiSort: "true",
            order: "asc",
         //   sortName: "tsName",
            // remoteSort: true,
            columns:[[
                {field:'tsName',title : 'Testsuites',width:"20%",sortable:true},
                {field:'exeplatform',title : 'Exec PlatForm',width:"30%",
                    formatter: function(){
                        return '<select id="cc" class="easyui-combobox" name="dept" style="width:200px" multiple=true;>' +
                                    '<option value="aa">aitem1</option>' +
                                    '<option>bitem2</option>' +
                                    '<option>bitem3</option>' +
                                    '<option>ditem4</option>' +
                                    '<option>eitem5</option>' +
                                '</select>';
                    }
                },
                {field:'exetype',title : 'Exe Type',width:"20%"},
                {field:'runon',title : 'Runon',width:"20%",sortable:true},
                {field:'thread',title : 'Thread',width:"10%"}
            ]]
      
        });


Any help would be much appreciated.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!