EasyUI Forum
December 06, 2025, 03:38:43 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1] 2 3
1  General Category / EasyUI for jQuery / Re: How can trigger on change and set value for rows of propertygrid? on: August 17, 2015, 04:47:23 AM
Hi
Thanks my friend.
I use this both ways, But the my first way is faster than your way with updateRow, Because you need row index of row for updating.
Have a good time  Wink
2  General Category / EasyUI for jQuery / Re: How can trigger on change and set value for rows of propertygrid? on: August 15, 2015, 08:06:45 AM
There is no answer for me?!  Huh Huh Huh

I found a solution, But its not perfect.

My Solution:
var properties = $("#tt").datagrid('getRows');
$.each(properties, function( index, value ) {
                    if(value['idname'] == "width")
                        value['value'] = $($this).css("width").replace(/[^-\d\.]/g, '');
                    else if(value['idname'] == "height")
                        value['value'] = $($this).css("height").replace(/[^-\d\.]/g, '');
                });
$("#tt").datagrid('loadData', properties);
Please give me a better solution, Thanks.
3  General Category / EasyUI for jQuery / How can trigger on change and set value for rows of propertygrid? on: August 14, 2015, 02:49:33 PM
Hi
How do I can onChanged row value in propertygrid
And how do I can set new value for a costume row of propertygrid

For example set "width" row when I resized an element.

Thanks a lot Smiley
4  General Category / General Discussion / Re: How to drop in same position? on: August 14, 2015, 01:57:14 PM
Thank's for your very quick answer.
I fixed it myself as below:

var obj = $(source).draggable('proxy');
                if(obj)
                    elm.css({ position:'absolute', left:obj.css("left").replace(/px/, "") - $("#content").offset().left, top:obj.css("top").replace(/px/, "") - $("#content").offset().top});
5  General Category / General Discussion / How to drop in same position? on: August 13, 2015, 02:53:07 PM
Hi
How can drop an element to same position that drag on it?
In the other words, How can get the current dragged element position to recreate it in same position.
Thanks Wink
6  General Category / General Discussion / Re: How to drag and drop between two panels of layout on: August 13, 2015, 09:05:13 AM
It works perfectly thanks dude  Smiley
7  General Category / General Discussion / Re: How to drag and drop between two panels of layout on: August 13, 2015, 12:29:43 AM
Hi
Tanks, But unfortunately, You can't understand my problem perfectly!  Sad Undecided

I said that I can't drag an item in layout form a side to another side, For example I cant drag from East Panel to Center Panel and the item will go to under next panel, In other word every panel is such as a stand alone iFrame or page.

I waiting to you. Thanks  Wink
8  General Category / General Discussion / How to drag and drop between two panels of layout on: August 12, 2015, 08:57:43 AM
Hi
I want to drag and drop some elements from side panel to another panels of a layout, But unfortunately I doesn't work and just elements draggable in same panel.
Please help me! Sad

Tanks alot  Wink
9  General Category / General Discussion / Re: Problem on default value for combotree in edatagrid on: July 15, 2015, 03:07:00 PM
I realized that the cause of the error when loading data from the url.
Because setValue in combotree run before loading data that not exists until, And this is a bug!  Huh

Thanks again
10  General Category / General Discussion / Re: Problem on default value for combotree in edatagrid on: July 15, 2015, 02:10:10 PM
I use this method for set default values on beginEditing:

Code:
onBeginEdit: function(index, row){
                $('.' +$(this).attr('id')+ 'Actions').fadeIn();
                var editors = $(this).edatagrid('getEditors', index);
                $.each(editors, function() {
                    if( this.type == 'combobox' ){
                        var opts = $(this.target).combobox('options');
                        $(this.target).combobox('setValue', row[ ( opts.defaultValueField != '' ? opts.defaultValueField : this.field ) ]);
                    }
                    else if( this.type == 'combotree' ){
                        var opts = $(this.target).combotree('options');
                        $(this.target).combotree('setValue', row[ ( opts.defaultValueField != '' ? opts.defaultValueField : this.field ) ]);
                    }
                });
            }
11  General Category / General Discussion / Re: Problem on default value for combotree in edatagrid on: July 15, 2015, 12:27:02 PM
When I use textbox or combobox, the current value is set for them but when I use combotree the current value not select node on it.
So what is problem?
12  General Category / General Discussion / Re: Problem on default value for combotree in edatagrid on: July 14, 2015, 07:21:55 PM
Thanks for your replay, But this is not use for datagrid editor.
My combotree is a datagrid editor, So what can I do?
13  General Category / General Discussion / Problem on default value for combotree in edatagrid on: July 14, 2015, 05:51:40 PM
Hi

Unfortunately, on usage combotree for datagrid inline editing, the default value not set automatically like combobox.
Please help me to solve this problem.

Thanks a lot  Wink
14  General Category / General Discussion / Content not fix with panel on portal moving on: May 03, 2015, 10:42:30 AM
Hello

I use your portal extension, and use a dynamic chart in one of panels.
But when I move the panel in new position with another width, Content not fix in panel, Please help me.

Thanks
15  General Category / General Discussion / change tab tools dynamically on: April 16, 2015, 06:56:18 AM
Hi

How can I hide or show or change tab tools?

Thanks
Pages: [1] 2 3
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!