EasyUI Forum
May 20, 2024, 04:56:59 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
1  General Category / EasyUI for jQuery / Re: How to reload a row? not the entire table on: June 08, 2016, 05:17:19 AM
I need the same thing, did you find at solution?
2  General Category / EasyUI for jQuery / Re: wait for datagrid reload to finish on: June 08, 2016, 03:43:06 AM
Or can i somehow setup so when i do this

var row = $('#dg').datagrid('getSelected');

i reload the data from the database?
3  General Category / EasyUI for jQuery / wait for datagrid reload to finish on: June 08, 2016, 02:30:24 AM
Hello

I've am trying to figure out how to wait for datagrid('reload') to finish. Is there a way?
4  General Category / EasyUI for jQuery / Datagrid editable on: March 03, 2016, 12:33:08 AM
Hello

I have a datagrid with two fields, for this example lets call them A and B.

Row B is always editable so i have made it this way

<th data-options="field:'B',editor:'textbox'" width="100">B</th>

but A should only be editable when i append a new row, so i need to change A to editable from my append function

 function append(){
            if (endEditing()){
                $('#kundeData').datagrid('appendRow',{status:'P'});
                editIndex = $('#kundeData').datagrid('getRows').length-1;
                $('#kundeData').datagrid('selectRow', editIndex)
                        .datagrid('beginEdit', editIndex);
            }
        }

How do i do that?

Regards
Bakkers
5  General Category / EasyUI for jQuery / Re: $.messager.alert and z-index on: November 06, 2015, 01:18:51 AM
I now found the right solution. I just moved the $('#popUpForm').window('open');   to a later stage in the process and now it's selected and the zIndex works Smiley
6  General Category / EasyUI for jQuery / Re: $.messager.alert and z-index on: November 06, 2015, 01:02:32 AM
I found out a way to make it work.

If i click on the window to select it, before i open the alert, it works, the only problem is that i manually have to double tap the header on the window to select it.

So how do i select the window through script so it's done automatically

7  General Category / EasyUI for jQuery / Re: $.messager.alert and z-index on: November 05, 2015, 04:38:41 AM
I just tried the latest version and it didn't help  Huh
8  General Category / EasyUI for jQuery / Re: $.messager.alert and z-index on: November 05, 2015, 03:51:01 AM
I'm using EasyUI 1.4.2

And if i change the zIndex of the window it stops working properly. And if i manuelly change the message.alert to a zIndex bigger then the windows the message.alert goes gray.

Maybe it's not ment to work together.
9  General Category / EasyUI for jQuery / Re: $.messager.alert and z-index on: November 05, 2015, 01:28:38 AM
try this bro

Code:
$.messager.alert({
     width:'200px',
     title:'Warning',
     content:'Warning to everybody oh yea',
     modal:true,
     zIndex:99999
});

That does the same thing, gets placed behind the window, and it actually gets z-index : 9002 so i think the script changes it somehow
10  General Category / EasyUI for jQuery / $.messager.alert and z-index on: November 04, 2015, 11:51:36 PM
Hello

I have a problem with a $.messager.alert and z-index.

I have opened up a easyui-window and from that windows i need to show a messager.alert, but the messager.alert gets a z-index behind the easyui-window. I can't figure out how to change that.

See the picture to get a idea of what i mean Smiley

11  General Category / General Discussion / Re: Databox validator on: October 08, 2015, 11:15:33 PM
Yes that worked perfectly.

Thank you very much Smiley
12  General Category / General Discussion / Databox validator on: October 08, 2015, 06:08:36 AM
Hello

I use Databox to allow users to select a date, however i want to restrict the date range. I found this example http://www.jeasyui.com/demo/main/index.php?plugin=DateBox& and Restrict Date. But i can't get it to work.

This is how my code looks now

Code:
<input class="easyui-datebox" id="returDatoArbejdstid" data-options="formatter:myformatter,parser:myparser" value="18-09-2015"></input>

And i would like to be able to add validator to the data-options instead of using the method shown in the Restrict Date on the site.

Is this posible?

Best Regards
Thomas
13  General Category / EasyUI for jQuery / Re: EasyUI windows setTitle not working on: July 02, 2015, 05:51:42 AM
I've found the problem, but haven't got a solution yet.

I have 2 files. file1.php and in that file i have my definition of the easyui-window.

file2.php is called by a ajax call from file1.php. In file2 i need the jquery.easyui.min.js script and it's what gives me the problem. If i don't include the title is set fine but when i include the script the title is set but the window gets refreshed when the jquery.easyui.min.js is finished loading and thereby resetting the title.
14  General Category / EasyUI for jQuery / Re: Updating easyui-datebox error on: July 02, 2015, 02:08:07 AM
There was no error. I found out i had made an error elsewhere.

This thread can be deleted.
15  General Category / EasyUI for jQuery / Updating easyui-datebox error on: July 01, 2015, 11:58:36 PM
Hello

I have created a easyui-window and in this window i have a easyui-datebox field.

When i click on a button i update the easyui-datebox with a date.

$('#myDate').datebox('setValue', document.getElementById('dateHidden').value);

The problem is that i can't see the value in the easyui-datebox field. The field is empty, but it isn't because if i in the same script function gets the value i can see that the value is set.

      alert($('#myDate').datebox('getValue'));

Do i need to refresh the field in some way, or is it an error with using a easyui-window and easyui-datebox?
Pages: [1] 2
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!