Show Posts
|
Pages: [1] 2 3
|
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): <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.
|
|
|
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: if (opts.lastExpandIndex != undefined){ for this: if (opts.lastExpandIndex != undefined && index != opts.lastExpandIndex){ It enables re-expand the same row if want it. Thanks stworthy!
|
|
|
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 $(function(){ $('#ff').form({ url:'log_validate.php', onSubmit:function(){ return $(this).form('validate'); }, success:function(data){ document.location.reload(true); } }); }); HTML <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
|
|
|
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:<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:$(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??
|
|
|
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: 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!!
|
|
|
|