EasyUI Forum
April 29, 2024, 02:17:37 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / EasyUI for jQuery / Re: Cloning a section of a form? on: June 22, 2017, 08:02:39 PM
For reference only:

function AddXiangLine()
{
   var count=parseInt($("#XiangCodeCount").val());
   var rowID=parseInt(count/3)+1;
   var format=" <input id=\"BKC_XiangCodeThisNo\" name=\"BKC_XiangCodeThisNo\" " +
              " class=\"easyui-combobox\" "+
              " data-options=\"editable:false,label:'Contianer Type',labelAlign:'right',labelWidth:80,width:'18%',required:false,height:32,valueField:'USER_DEFINED_TYPE',textField:'USER_DEFINED_TYPE',value:''\"/>"+
              " <input id=\"BKC_XiangCountThisNo\" name=\"BKC_XiangCountThisNo\" "+
              " class=\"easyui-numberspinner\" "+
              " data-options=\"label:'Container Count',labelAlign:'right',labelWidth:40,width:'14%',height:30,editable:true,required:true,value:0,min:0,max:999\"/>";
   var outStr=[];
   outStr.push("<div class=\"row\" id=\"div_"+rowID+"\">");
   outStr.push(myString.replace(format,"ThisNo",count+1));
   var str2=myString.replace(format,"ThisNo",count+2);
   str2=myString.replace(str2,"labelWidth:80","labelWidth:87");
   outStr.push(str2);

   var str3=myString.replace(format,"ThisNo",count+3);
   str3=myString.replace(str3,"labelWidth:80","labelWidth:95");
   outStr.push(str3);
   outStr.push("</div>")
   $("#XiangCodeRow1").after(outStr.join("\n"));
   //解析easyui组件
   $.parser.parse("#div_"+rowID);

   //Fill Container Type Data
   var data=$("#BKC_XiangCode1").combobox("getData");
   data.push({USER_DEFINED_TYPE:""});
   if(data.length>0)
   {
      $("#BKC_XiangCode"+(count+1)).combobox("loadData",data);
      $("#BKC_XiangCode"+(count+1)).combobox("setText","=Select=");
      $("#BKC_XiangCode"+(count+2)).combobox("loadData",data);
      $("#BKC_XiangCode"+(count+2)).combobox("setText","=Select=");
      $("#BKC_XiangCode"+(count+3)).combobox("loadData",data);
      $("#BKC_XiangCode"+(count+3)).combobox("setText","=Select=");
   }
   $("#XiangCodeCount").val(count+3);
   $("#delXiangBtn").linkbutton('enable');
}
2  General Category / EasyUI for jQuery / Re: Add combobox or searchbox programmaticaly in toolbar on: June 18, 2017, 08:06:15 AM
toolbar:'#tb'

<div id='tb'>
    <div>
       <a....class='easyui-linkbutton'....></a>
    </div>
    <div>
        ohter button or textbox or ....
    </div>
</div>

use css set elements..
3  General Category / General Discussion / Re: Could you add an new plugin to upload file? on: June 18, 2017, 07:58:46 AM
Thanks for you replay.
but, I want to get a upload file plugin like "http://www.uploadify.com/".
 Smiley

an plugin in easyui framework.
my projects only use one framework. Smiley
4  General Category / EasyUI for jQuery / Re: tooltip on PropertyGrid on: June 13, 2017, 09:59:58 PM
suggest:
use css solve it.

css:
.title{ width:300px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}

<div class="title" title="display text display text display text display text ">display text display text display text display text </div>
5  General Category / EasyUI for jQuery / Re: prevent data grid selection on: June 13, 2017, 09:49:38 PM
Events:
onBeforeSelect(index,row)

Fires before the user selects a row, return false to cancel this action. Available since version 1.4.1.
6  General Category / EasyUI for jQuery / Re: creating sub-groups in PropertyGrid on: June 13, 2017, 02:52:41 PM
PropertyGrid may be not support sub-groups.
suggest try:
TreeGrid
7  General Category / EasyUI for jQuery / Re: appending multiple rows on: June 13, 2017, 01:43:08 PM
var data={"total":4,"rows":[
    {"name":"Name","value":"Bill Smith","group":"ID Settings","editor":"text"},
    {"name":"Address","value":"","group":"ID Settings","editor":"text"},
    {"name":"SSN","value":"123-456-7890","group":"ID Settings","editor":"text"},
    {"name":"Email","value":"bill@gmail.com","group":"Marketing Settings","editor":{
        "type":"validatebox",
        "options":{
            "validType":"email"
        }
    }}
]};

$('#easyuiPropertyGrid').propertygrid('loadData', data);

or

$('#easyuiPropertyGrid').propertygrid({url: 'get_data.php',......});

get_data.php return data, the format same as 'var data=....'
8  General Category / General Discussion / Could you add an new plugin to upload file? on: June 13, 2017, 01:11:47 PM
 ;DCould you add an new plugin to upload file?
9  General Category / General Discussion / Re: datagrid pagination on: June 13, 2017, 01:04:38 PM
1. total=...select count(0) from ... where ...filed like '%...%' order by filed asc ===> 113
2. rows= ..select * from ... where ...filed like '%...%' and rowid between 0 to 49 order by filed asc ==>50
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!