Show Posts
|
Pages: [1] 2
|
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
|
|
|
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
|
|
|
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 $.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
|
|
|
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 <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.
|
|
|
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?
|
|
|
|