EasyUI Forum
May 06, 2024, 10:52:42 PM *
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 / General Discussion / Re: Malware Warning from Chrome on: July 23, 2013, 08:38:05 AM
It happened to me too... only iexplorer works.
2  General Category / EasyUI for jQuery / Re: Combobox trouble on: June 21, 2013, 02:06:54 PM
Thanks! that works, by the way... I loaded without commas. Thanks again!!
3  General Category / EasyUI for jQuery / Re: Fomatter for textbox on: June 21, 2013, 01:58:42 PM
Maybe this could help you (using prefix):

Code:
<input id="txt_pli0" class="easyui-numberbox numberbox-f validatebox-text" value="0.00" data-options="precision:2,groupSeparator:',',decimalSeparator:'.',prefix:'US$'" style="width:164px;text-align:right;" numberboxname="planillaimp">
4  General Category / EasyUI for jQuery / Combobox trouble on: June 07, 2013, 09:24:40 AM
Hi stworthy!,

I have this problem with combobox control:

1. I'm using combobox in multiselect mode, when I save data, the text in combobox looks like this: AURICULARES,LAPTOP,MICROFONO,ECRAN.
2. But when I load data to my form, the text in combobox loads like this: A,U,R,I,C,U,L,A,R,E,S,,,L,A,P,T,O,P,,,M,I,C,R,O,F,O,N,O,,,E,C,R,A,N.

I'm doing wrong?
Look my attachments. Thx in advance.
5  General Category / EasyUI for jQuery / Re: Question about mergeCells method of datagrid! on: May 09, 2013, 12:44:12 PM
code?
6  General Category / EasyUI for jQuery / Re: DataGrid in XHTML File on: May 07, 2013, 07:22:25 AM
To use &nbsp; in XML use the following entity: &#160;
7  General Category / News / Re: jQuery EasyUI 1.3.3 Release on: May 06, 2013, 07:37:46 AM
Excelent news!
8  General Category / EasyUI for jQuery / Re: Auto Collapse DatagridView on: May 06, 2013, 07:10:18 AM
For better solution, I replaced this line:
Code:
if (opts.lastExpandIndex != undefined){
for this:
Code:
if (opts.lastExpandIndex != undefined && index != opts.lastExpandIndex){
It enables re-expand the same row if want it.

Thanks stworthy!
9  General Category / EasyUI for jQuery / Re: DataGrid in XHTML File on: May 06, 2013, 07:06:46 AM
Try: {field:'addr', title:'le', width:150}
10  General Category / EasyUI for jQuery / Re: Auto Collapse DatagridView on: May 04, 2013, 02:04:24 PM
Thanks man!! you always helping us, that's a great solution!
11  General Category / EasyUI for jQuery / Auto Collapse DatagridView on: May 03, 2013, 03:12:04 PM
Hi sworthy!

My question this time is about auto-collapse datagridview. It is possible auto-collapse the last row in gridview mode, when i clicking on another row to expand? or it is possible collapse all rows before expand another??  Huh

Please refer to: http://jsfiddle.net/DQMQ9/

I'll really appreciate your help, thanks!
12  General Category / EasyUI for jQuery / Re: Submit Form with Link Button on: February 23, 2013, 12:39:05 PM
Thanks sworthy, this line was the solution: "Calling $('#ff').submit() statement can submit the form normally". I had not understood before, but now it's all clear.

Here's my code:

JSCRIPT
Code:
 			$(function(){
$('#ff').form({
url:'log_validate.php',
onSubmit:function(){
return $(this).form('validate');
},
success:function(data){
document.location.reload(true);
}
});
});

HTML
Code:
							<form id="ff" method="post">
<table>  
<tr>  
<td>User:</td>
</tr>
<tr>
<td align="center"><input id="user" class="easyui-validatebox" type="text" name="user"></input></td>
</tr>
<tr>  
<td>Password:</td>
</tr>
<tr>
<td align="center"><input id="password" class="easyui-validatebox" type="password" name="password" required="true"></input></td>
</tr>
<tr>
<td align="center"><a href="javascript:void(0)" class="easyui-linkbutton" onclick="$('#ff').submit()">Submit</a></td>
</tr>
</table>
</form>

Now I have an "easyui-linkbutton" working Smiley
13  General Category / EasyUI for jQuery / Submit Form with Link Button on: February 21, 2013, 03:40:32 PM
Hi guys. I have a little problem here:

HTML:
Code:
<div class="easyui-panel" style="width:167px">  
<form id="ff" method="post">
<table>  
<tr>  
<td>User:</td>
</tr>
<tr>
<td><input id="user" class="easyui-validatebox" type="text" name="user" required="true"></input></td>
</tr>
<tr>  
<td>Password:</td>
</tr>
<tr>
<td><input id="password" class="easyui-validatebox" type="password" name="password" required="true"></input></td>
</tr>
</table>
<div style="background:#fafafa;text-align:center;padding:5px">
<a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()">Submit</a>
<a href="javascript:void(0)" class="easyui-linkbutton" onclick="clearForm()">Clear</a>
</div>
</form>
</div>

SCRIPT:
Code:
$(function(){
$('#ff').form({
url:'log_validate.php',
onSubmit:function(){
return $(this).form('validate');
},
success:function(data){
document.location.reload(true);
$.messager.alert('Access', data, 'info');
}
});
});
function submitForm(){  
$('#ff').form('submit');  
}  
function clearForm(){  
$('#ff').form('clear');  
}

The form works perfectly with: <input type="submit" value="Submit">, but when I replaced with <a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()">Submit</a>... doesn't work.

I searched all the forum topics and I found this solution: onClick="$('#ff').submit();", but it doesn't work either.

Any idea anybody??
14  General Category / EasyUI for jQuery / Re: getValue on: February 21, 2013, 03:37:38 PM
Try: $('#member_idx').val()

Define input type or class dude.
15  General Category / EasyUI for jQuery / Re: Summary in footer row on: February 16, 2013, 07:45:42 AM
Great, thats works... you always helping us.

By the way, I made a function like this:

Code:
		function total(){  
var dg = $('#dg');
var data = dg.datagrid('getData'); 
dg.datagrid('loadData', data); 
var total = new Array();
var nofrozen = dg.datagrid('getColumnFields');
for(var i=0; i<nofrozen.length; i++){
total[i]=0;
}
var rows = dg.datagrid('getRows'); 
for(var i=0; i<rows.length; i++){ 
total[0]+= rows[i].a301; 
total[1]+= rows[i].a302; 
total[2]+= rows[i].a303; 
total[3]+= rows[i].a304; 
total[4]+= rows[i].a307; 
total[5]+= rows[i].a309; 
total[6]+= rows[i].a310; 

dg.datagrid('reloadFooter', [{articulo:'Total',a301:total[0],a302:total[1],a303:total[2],a304:total[3],a307:total[4],a309:total[5],a310:total[6]}]);
}

It works really great, but I have two questions:

1- I have a data grid with navigation by 15 rows per page. My function summarize only the current 15 rows and excluded the next 2k rows.
¿There is another way to summarize all rows and not only the rows in current view?

2- Noob question: I tried to call the total function in onLoadSuccess... but not success. ¿how call the function after datagrid load?

Important Note: When I enabled detailview and showfooter, I saw one space in the footer  generated by one square (it's maybe detailview field)... but the position is on the right of the "Total" word in the footer and not on the left.

I hope you can answer my questions.

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!